Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
網路概念簡介_網路速度篇.pdf
Search
jnlin
July 19, 2018
130
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
網路概念簡介_網路速度篇.pdf
jnlin
July 19, 2018
More Decks by jnlin
See All by jnlin
工程師到技術主管的思維轉變_敏捷_疊代與商業.pdf
jnlin
0
250
工程師的商業思維:商業與技術架構的關係
jnlin
0
180
擁抱流量:打造破億流量的系統架構
jnlin
0
79
Modern_Webconf_2018_從平台_媒體到數據公司_PIXNET_的架構演進.pdf
jnlin
0
340
How_to_be_a_better_developer_.pdf
jnlin
0
78
20120426 High Availability MySQL
jnlin
3
2.4k
20110821-webdevelopmentoncloudplatform-110820211058-phpapp01.pdf
jnlin
0
72
20110504-awstaipei-110504045602-phpapp01.pdf
jnlin
0
96
20110326-handlersocket-110325140025-phpapp02.pdf
jnlin
0
110
Featured
See All Featured
Building Applications with DynamoDB
mza
96
7.1k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
1
3.7k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
220
The SEO identity crisis: Don't let AI make you average
varn
0
520
Making the Leap to Tech Lead
cromwellryan
135
10k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
55k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3k
Chasing Engaging Ingredients in Design
codingconduct
0
240
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
430
How STYLIGHT went responsive
nonsquared
100
6.2k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.8k
Transcript
網路路概念念簡介:網路路速度篇 Jui-Nan Lin @ PIXNET
我的網路路速度很慢! 100M的網路路還是卡卡,為什什麼?
網路路速度 頻寬(Throughput) 每秒鐘可以傳輸多少資料(⽔水管的粗細) 延遲(Latency) 「⼀一單位」資料要花多少時間傳輸(⽔水管的長度)
從 A -> B 電路路交換 (Circuit Switching) 封包交換 (Packet Switching)
1930年年代基隆隆電話交換所
IP 網路路 封包交換系統 封包有 Header 型態、來來源、⽬目的地 ⼀一個IP封包是網路路中的最⼩小單位 160bit (20bytes)
回到網路路速度的問題 ⽔水管很粗 同時可以處理理很多封包 ⽔水管很長 每個封包處理理很久 ⼤大⾶飛機可以坐很多⼈人,但⾶飛 到美國就是需要很多時間
Latency 相對論說,沒有任何東⻄西可以快過光速 所以資訊的傳遞速度 < 光速 (每秒30萬公⾥里里) Latency 被光速限制,跟距離有關
11 ms v.s. 144 ms
(從台灣)常⾒見見的 Latency RTT(Round Trip Time) 台灣:10 ms 香港:20 ms ⽇日本:60ms
美國⻄西岸:120ms ADSL:10ms 光纖上網:1ms 以內 Wifi:5ms 4G:20ms
RTT 很重要 因為我們使⽤用的是 TCP/IP TCP 建立連線時,有⼀一個 3 way handshaking 的步驟
Latency ⾼高,建立連線速度 慢 4G 有 20M,但是感覺 比光纖 10M 還慢
https://www.wireshark.org/
None
直⾶飛&轉機的差異異
解決 Latency ⾼高的⽅方法 縮短距離 CDN 共⽤用連線 HTTP 的 Keep-Alive 平⾏行行連線
Domain Sharding 共⽤用且平⾏行行傳輸 (Multiplexing) HTTP/2
⼩小結 網路路速度:頻寬與延遲 延遲常常比頻寬重要(尤其在玩遊戲的時候!) ⽤用 ping 和 traceroute 可以檢查延遲與節點數量量 有些技巧可以在延遲⾼高的網路路上,讓速度變快
None