SlideShare a Scribd company logo
1
Yamagata Developer’s Meetup Night!
インターネット通信のしくみ
2019/02/23
加藤待士
いきなりですが、、、
• 明日の夜、
バスケットボール男子日本代表
の試合を、フジテレビ系列で放送します!
• 予選最終戦、かつ、
ワールドカップ出場権がかかった大一番です!
2
今日、お話すること:インターネット通信の仕組み
•小包(パケット)
•配送センター(ルーター)
•仕分け表(ルーティングテーブル)
3
データ通信には2つの方法があります
•回線交換方式
•パケット交換方式
4
回線交換方式
• 一本の通信路を一人が占有してデータを送る方法
• 通信路を占有できるので安定した通信を実現できる
• 占有しながらもデータが送られない時間が多く、無駄が生じる
• 占有するので、その間は他の人は待つ必要がある
5
パケット交換方式
• データを細かく分割して、1つずつ小包(パケット)で送る方法
• パケットはすごく小さい
• 回線を占有する時間はものすごく短くて済む
• 自分のパケットを送る順番がすぐにくる
• みんなで回線を同時に使っているように感じられる
6
デジタルデータは分割と復元ができる 1/2
7
どんなファイル(データ)でも
中身はビット(0/1)の連続体なのです
1 1 10 0 0
デジタルデータは分割と復元ができる 2/2
0 1 0 1 1 1 0 0 1
0 1 0
0 0 1
1 1 1
データの分割 データの復元(結合)
0 1 0 1 1 1 0 0 1
0 1 0
0 0 1
1 1 1
パケット構造を詳しく見てみよう
• パケットの構造はこんな感じ
9
パケット構造をめっちゃ単純化します
• ヘッダー部:データの送り状
• データ部:データの中身
10
ヘッダー部(送り状)
データ部(中身)
パケット
パケットのヘッダー部は送り状
• 送り状に必要なのは
• 送り先の住所、送り主の住所
11
ヘッダー部
送り先情報
送り主情報
183.79.250.251
IPアドレス
10110111010011111111101011111011
(32bit)
10110111.01001111.11111010.11111011
話はパケット(小包)からルーター(配送センター)に
変わります
12
宅配便の配送経路はこんな感じ
13
山寺店
七日町店
小白川店
山形県センター 東京都センター
渋谷店
銀座店
浅草店
宅配便の配送経路:宛先が同じ七日町エリアの場合
14
山寺店
七日町店
小白川店
山形県センター 東京都センター
渋谷店
銀座店
浅草店
七日町店
「宛先がうちのエリアだから、直接届けるよ!」
宅配便の配送経路:宛先がエリア外の場合
15
山寺店
七日町店
小白川店
山形県センター 東京都センター
渋谷店
銀座店
浅草店
七日町店
「うちのエリアでないから、
とりあえず山形県センターに任せよう!」
To 浅草
宅配便の配送経路:宛先がエリア外の場合
16
山寺店
七日町店
小白川店
山形県センター 東京都センター
渋谷店
銀座店
浅草店
山形県センター
「浅草エリアは東京都センターが知っているから、
東京都センターに任せよう!」
To 浅草
宅配便の配送経路:宛先がエリア外の場合
17
山寺店
七日町店
小白川店
山形県センター 東京都センター
渋谷店
銀座店
浅草店
東京都センター
「浅草エリアは浅草店の担当だから、
浅草店に任せよう!」
To 浅草
宅配便の配送経路:宛先がエリア外の場合
18
山寺店
七日町店
小白川店
山形県センター 東京都センター
渋谷店
銀座店
浅草店
浅草店
「荷物はエリア内だから、直接届けるぜ!」
宅配便の配送経路:宛先が同じ七日町エリアの場合
19
山寺店
七日町店
小白川店
山形県センター 東京都センター
渋谷店
銀座店
浅草店
七日町店
「宛先がうちのエリアだから、直接届けるよ!」
何を根拠にして
こんなこと言うの?
宅配便の配送経路:宛先がエリア外の場合
20
山寺店
七日町店
小白川店
山形県センター 東京都センター
渋谷店
銀座店
浅草店
七日町店
「うちのエリアでないから、
とりあえず山形県センターに任せよう!」
To 浅草
何を根拠にして
こんなこと言うの?
宅配便の配送経路:宛先がエリア外の場合
21
山寺店
七日町店
小白川店
山形県センター 東京都センター
渋谷店
銀座店
浅草店
山形県センター
「浅草エリアは東京都センターが知っているから、
東京都センターに任せよう!」
To 浅草
何を根拠にして
こんなこと言うの?
宅配便の配送経路:宛先がエリア外の場合
22
山寺店
七日町店
小白川店
山形県センター 東京都センター
渋谷店
銀座店
浅草店
東京都センター
「浅草エリアは浅草店の担当だから、
浅草店に任せよう!」
To 浅草
何を根拠にして
こんなこと言うの?
宅配便の配送経路:宛先がエリア外の場合
23
山寺店
七日町店
小白川店
山形県センター 東京都センター
渋谷店
銀座店
浅草店
浅草店
「荷物はエリア内だから、直接届けるぜ!」
何を根拠にして
こんなこと言うの?
その根拠は、
• それぞれの配送センターが独自の
仕分け表
を持っているからです!
24
荷物の宛先 仕分け先
七日町1−1−1 七日町1−1−1
七日町2−2−2 七日町2−2−2
その他 山形県センター
七日町店
荷物は、仕分け表のリストに沿って渡されていく
25
荷物の宛先 仕分け先
七日町1−1−1 七日町1−1−1
七日町2−2−2 七日町2−2−2
その他 山形県センター
七日町店
To 浅草
1-1-1
荷物の宛先 仕分け先
七日町エリア 七日町店
山寺エリア 山寺店
小白川エリア 小白川店
東京都エリア 東京都センター
山形県センター
荷物の宛先 仕分け先
渋谷エリア 渋谷店
浅草エリア 浅草店
銀座エリア 銀座店
山形エリア 山形県センター
東京都センター
荷物の宛先 仕分け先
浅草1−1−1 浅草1−1−1
浅草2−2−2 浅草2−2−2
その他 東京都センター
浅草店
仕分け表で注目して欲しいところがあります!その1
•荷物の宛先の「その他」の意味
26
とりあえず他所のセンターに
任せてしまえ!
利点:日本全体のセンターを把握しなくていい
仕分け表で注目して欲しいところがあります!その2
•仕分け先は自分の隣までしかない
27
自分の隣の人がどこに届けてくれるか
だけ、ちゃんと知っておく
利点:日本全体のセンターを把握しなくていい
今日、お話したこと:インターネット通信の仕組み
•小包(パケット)
•配送センター(ルーター)
•仕分け表(ルーティングテーブル)
28
宅配便もインターネットもだいたい一緒
でも、やっぱり宅配便とインターネットは違う!
• 違うところ
•1つの会社がすべてのセンターを統括し
ているわけではない
•と言うか、センターはすべて別の会社
29
湧き上がる疑問。。
•仕分け表は、誰が、どうやって作るの?
•センターが災害にあったらどうなるの?
30
31
次回のテーマはASです
•AS
(Autonomous System)
• 自律 システム
32
「インターネットは、自律したシステムである」
の意味を知ることができます
おまけ:セキュリティ小話
• 宅ファイル便のパスワード漏洩事件、ご存知ですか?
• 宅ファイル便
「ファイルを預かるサービス」
• 「ファイルのURLアドレスを知っている人だけがダウンロードできる」
問題点 ❌利用するユーザのユーザIDとパスワードが漏洩した
問題点 ⭕️古くからあるサービスは問題を抱え混みやすい
昔は悪い人が少なかったので、
サービスのセキュリティも甘かった。
一度動き出したサービスは、改修しづらい。
33
おまけ:あなたのパスワード漏れてない?
•Have I Been Pwned?
https://haveibeenpwned.com/
• パスワード漏洩をチェックできるサービス
• セキュリティ研究者が漏洩したID/Passを収集
• 収集した情報を元に検索データベースを作った
• 主要なブラウザは、この情報を基にパスワード漏洩チェック機能を提供
• みんな、パスワードの使い回しをしている実態が明らかになった
• 作ったのはTroy Huntさん
• Microsoft Regional Director
34
とりあえず「1Password」アプリをお勧めします
• 1Password
• https://1password.com/jp/
• 1つのマスターパスワードさえ覚えておけば良い
• サービスごとのパスワードは覚えなくともよい
• 便利な機能
• サービスごとに異なるランダムなパスワードの自動生成
• 暗号化した上でパスワードリストを保存
• Windows、Mac、Linux、iOS、Androidで同じリストを参照できる
35
自己紹介(最近欲しいのは電動マウンテンバイクです)
• 加藤待士(かとう みちひと)です
• 360度パノラマ写真を撮影・制作しています
• ITベンチャーの会社員もしています
(主に暗号化やブロックチェーンを扱っています)
• https://cryptor.work/
• 山形で撮影した360度パノラマ写真のFacebookページがあります!
36
Facebookページ「山形360パノラマ風景」

More Related Content

Featured

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
Simplilearn
 

Featured (20)

How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
 

Ydm 20190223 kato

Editor's Notes

  1. 昔の電話の方式だった。昔のパソコン通信はこの方式だった(Nifty-Serveとか)