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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
jnlin
July 19, 2018
170
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
網路概念簡介_網路速度篇.pdf
jnlin
July 19, 2018
Transcript
17 slides
網路路概念念簡介:網路路速度篇 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
More Decks by jnlin
See All by jnlin
工程師到技術主管的思維轉變_敏捷_疊代與商業.pdf
jnlin
0
300
工程師的商業思維:商業與技術架構的關係
jnlin
0
220
擁抱流量:打造破億流量的系統架構
jnlin
0
110
Modern_Webconf_2018_從平台_媒體到數據公司_PIXNET_的架構演進.pdf
jnlin
0
370
How_to_be_a_better_developer_.pdf
jnlin
0
110
20120426 High Availability MySQL
jnlin
3
2.4k
20110821-webdevelopmentoncloudplatform-110820211058-phpapp01.pdf
jnlin
0
120
20110504-awstaipei-110504045602-phpapp01.pdf
jnlin
0
100
20110326-handlersocket-110325140025-phpapp02.pdf
jnlin
0
120
Featured
See All Featured
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.9k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
610
Into the Great Unknown - MozCon
thekraken
41
2.8k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
22k
Thoughts on Productivity
jonyablonski
76
5.5k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
550
Making the Leap to Tech Lead
cromwellryan
135
10k
Amusing Abliteration
ianozsvald
1
400
Practical Orchestrator
shlominoach
192
12k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
790
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
1
320