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
網路概念簡介_網路速度篇.pdf
Search
jnlin
July 19, 2018
140
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
270
工程師的商業思維:商業與技術架構的關係
jnlin
0
190
擁抱流量:打造破億流量的系統架構
jnlin
0
80
Modern_Webconf_2018_從平台_媒體到數據公司_PIXNET_的架構演進.pdf
jnlin
0
350
How_to_be_a_better_developer_.pdf
jnlin
0
87
20120426 High Availability MySQL
jnlin
3
2.4k
20110821-webdevelopmentoncloudplatform-110820211058-phpapp01.pdf
jnlin
0
84
20110504-awstaipei-110504045602-phpapp01.pdf
jnlin
0
97
20110326-handlersocket-110325140025-phpapp02.pdf
jnlin
0
120
Featured
See All Featured
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.2k
Code Reviewing Like a Champion
maltzj
528
40k
A Tale of Four Properties
chriscoyier
163
24k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
510
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.8k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.6k
Believing is Seeing
oripsolob
1
220
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Deep Space Network (abreviated)
tonyrice
0
310
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