Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
SPDY
Search
HakumaNatata
April 22, 2013
Technology
120
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
SPDY
SPDY - a new open networking protocol
HakumaNatata
April 22, 2013
More Decks by HakumaNatata
See All by HakumaNatata
Introduction to NMAP
natata
0
66
How to trace code
natata
0
55
HTML5 canvas game
natata
0
78
Introduction to HTML5
natata
0
45
PHP with Smarty
natata
0
40
Other Decks in Technology
See All in Technology
Optunaの最新リリースv5.0について
pfn
PRO
0
120
CTO Night|NotionのAIエージェントとFDE
kzkhykw1991
0
100
パスキーの自動テストはどこまでいけるのか
teamlab
PRO
0
210
[JAWS-UG彩の国埼玉#12]そろそろ準備する?re:Invent2026をやさしく解説 / reinvent2026-sainokuni
sh_fk2
1
340
WasmをRustにする
sansantech
PRO
0
250
V8のArray.prototype.flatを最大約20倍速くするまでと、巨大OSSへの大規模コミットの道のり
riyaamemiya
0
290
宣言型部分更新は何を解決しどこへ向かうのか
shuta13
1
450
Benchmarking Disaggregated Serving on vLLM + Dynamo with a Real Coding-Agent Workload
nttcom
1
190
遠藤な_めぐろLT #38 「社内のAI活用推進」@麻布台_20261009
endonanana
0
130
パッチ更新でterraform initが落ちた日
grimoh
1
140
Metadata - Section 1: HTML Basics
mohab1
0
120
二歩目のフロントエンド・ウェブアクセシビリティ
camiha
2
570
Featured
See All Featured
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
280
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
750
How to Ace a Technical Interview
jacobian
280
24k
The Limits of Empathy - UXLibs8
cassininazir
2
720
Darren the Foodie - Storyboard
khoart
PRO
4
4k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
Optimizing for Happiness
mojombo
378
71k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
520
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
260
Producing Creativity
orderedlist
PRO
348
41k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
58k
Transcript
SPDY 軟工一 彭博涵
先別說 SPDY 了,你聽過 HTTP 嗎? 2
HTTP & TCP • Hypertext Transfer Protocol (HTTP) – h;p://en.wikipedia.org/wiki/
Hypertext_Transfer_Protocol • Transmission Control Protocol (TCP) – h;p://en.wikipedia.org/wiki/ Transmission_Control_Protocol 3
HTTP 有什麼問題? • One request, one connecLon • Exclusively
client-‐iniLated requests • Uncompressed request and response headers • Redundant headers • OpLonal data compression 4
HTTP/1.0+ • Persistent connecLon 5
HTTP/1.1 • pipelining 6
MulLple TCP connecLons 7
MulLple TCP connecLons (cont.) 8 Request HTML Request JS
Request CSS Request CSS Request image Request image Request image Request image Request image Request image Request image Request image Request image
But! 9
Slow start 10
MulLple TCP connecLons (cont.) 11 Request HTML Request JS
Request CSS Request CSS Request image Request image Request image Request image Request image Request image Request image Request image Request image
Header • 重複 • 無法壓縮 12
速度有這麼重要嗎? 13
14
研究指出 • Amazon 的網頁載入時間每多一秒,該公司 的年度營收就減少 16 億美元 • Google
的搜尋時間每多 0.4 秒,每天的搜尋 次數就會減少 8 百萬。 15
SPDY 16
SPDY 是什麼? • Open networking protocol • Developed primarily at
Google • For transporLng web content • Improve latency at the transport layer 17
Goal of SPDY • 減少 50% 網頁載入時間 • 降低佈署複雜度
• 避免網頁做任何修改 • 減少 HTTP 同時使用的頻寬 18
特點 • SSL • 可透過單一 TCP session 同時傳送多個 HTTP
request • 壓縮 (header & data) • Server push 19
SSL • 雖然比較慢 • 需要登入的網站那麼多 • 好 SSL,不用嗎?
20
One TCP session, mulLplex streams 21
Control frame and data frame 22 Control frame Data
frame
Control frame • Control bit : Control frame(1) or data
frame(0) • Version: SPDY 的版本 • Type: control frame 的種類 • Flags • Length • Data 23
Data frame • Control bit • Stream-‐ID: 31-‐bit. 偶數:
server, 奇數: client • Flags : 0x01 = FLAG_FIN • Length • Data 24
示意圖 25
壓縮 • zlib compression 26
Server push • 直接將資源推送給 client • Server 假設所推送的資源是 client
需要的 27
SPDY 優點 • Frame 可以混雜 • 一個 TCP connecLon
• Slow start 一次 • 記住上次的 CWND 28
誰在用 SPDY? • Google • Twi;er •
Wordpress.com • LINE • Facebook • …etc 29
Server • Apache mod_spdy – h;ps://code.google.com/p/mod-‐spdy/ • Nginx
– h;p://nginx.org/patches/spdy/README.txt • Node-‐spdy – h;ps://github.com/indutny/node-‐spdy 30
Browser • h;p://caniuse.com/spdy 31
Is it speedy? • h;ps://chrome.google.com/webstore/detail/ spdy-‐indicator • h;ps://addons.mozilla.org/en-‐us/firefox/ addon/spdy-‐indicator/
32
Future • HTML 2.0 33
參考資料 • h;p://www.slideshare.net/ihower/a-‐brief-‐ introducLon-‐to-‐spdy-‐h;p20 • h;p://www.chromium.org/spdy/spdy-‐ protocol/spdy-‐protocol-‐dram3 •
h;p://www.chromium.org/spdy/spdy-‐ whitepaper 34
• Thank you for listening 35