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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
jnlin
July 19, 2018
120
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
330
How_to_be_a_better_developer_.pdf
jnlin
0
72
20120426 High Availability MySQL
jnlin
3
2.4k
20110821-webdevelopmentoncloudplatform-110820211058-phpapp01.pdf
jnlin
0
69
20110504-awstaipei-110504045602-phpapp01.pdf
jnlin
0
95
20110326-handlersocket-110325140025-phpapp02.pdf
jnlin
0
110
Featured
See All Featured
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
330
KATA
mclloyd
PRO
35
15k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
250
Building AI with AI
inesmontani
PRO
1
1.1k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
970
A Tale of Four Properties
chriscoyier
163
24k
Building Flexible Design Systems
yeseniaperezcruz
330
40k
Mobile First: as difficult as doing things right
swwweet
225
10k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.5k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
580
Utilizing Notion as your number one productivity tool
mfonobong
4
320
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