Circuit switching and packet switching
導入済み
11:12
プロトコルが必要な理由
2台のコンピュータが会話したいと考えていますが、片方がデータを某方向に送信し、もう片方が全く異なる形で期待しています。結果はごちゃ混ぜになり——二人の人が…話しているようなものです。
英語のナレーション・英語と中国語の字幕を切り替え可能
このレッスンの内容
| English | 意味 |
|---|---|
| communications network | A group of connected devices that can send data to each other. |
| message/ˈmesɪdʒ/ | A piece of information sent from one device to another. |
| link/lɪŋk/ | A connection between two devices through which data can travel. |
| internet/ˈɪntənet/ | A worldwide system of interconnected networks using Internet Protocol. |
| circuit switching/ˈsɜːkɪt ˈswɪtʃɪŋ/ | 回路交換 |
| packet switching/ˈpækɪt ˈswɪtʃɪŋ/ | パケットスイッチング |
| traffic | The data travelling through a network over a period of time. |
| circuit/ˈsɜːkɪt/ | A complete path through which electric current can flow. |
| dedicated path/ˈdedɪkeɪtɪd pæθ/ | 専用パス |
| bandwidth/ˈbændwɪdθ/ | 帯域幅 |
| rate/reɪt/ | A quantity measured or calculated per unit of another quantity, often per unit time. |
| delay/dɪˈleɪ/ | The time taken for data to travel from sender to receiver. |
| packets/ˈpækɪts/ | Small blocks of a message sent separately across a network. |
| destination and source addresses | Addresses showing where a packet is going and where it came from. |
| sequence number/ˈsiːkwəns ˈnʌmbə/ | シーケンス番号 |
| router/ˈruːtə/ | ルーター |
| next hop | The next device a packet is sent to on its route. |
| reassemble | To put packets back together in the correct order to form the message. |
| multiplexed/ˌmʌltɪˈplekst/ | 多重化 |
| variable latency/ˈveərɪəbl ˈleɪtənsi/ | 可変レイテンシ |
| TCP/ˌtiː siː ˈpiː/ | A transport protocol that establishes a connection and delivers data reliably and in order. |
| destination IP address | The address that identifies where a packet needs to go. |
| routing table/ˈraʊtɪŋ ˈteɪbl/ | Stored information a router uses to choose where to forward packets for different network destinations. |
| interface/ˈɪntəfeɪs/ | A way for users or programs to communicate with the computer's hardware. |
| constant-rate flows | Streams of data sent at a steady rate over time. |
| bursty flows | Data streams sent at changing rates, with periods of little or no data. |
自らの破壊に対抗して設計されたネットワーク
- 1964年、ポール・バーランは核攻撃後に通信ネットワークが機能し続ける方法を問われました。当時の既存ネットワークはすべてテストで失敗しました。なぜなら、電話通話では1つのパスが予約され、そのパスを切断すると通話が終了するからです。
- 彼が提案したのはパスを予約しないことです。メッセージを小さなブロックに切り分け、各ブロックにアドレスを割り当て、それぞれが独自に進む道を見つけるようにします。リンクが消滅しても、次のブロックは simply 迂回して進みます。
- このアイデアは長年実用不可能と見なされました。しかし現在はほぼすべてのデータ転送がこの方式で行われており、これがインターネットに中心がなく、どこを切断しても機能し続ける理由です。
- この教訓は サーキットスイッチング と パケットスイッチング であり、それぞれの動作原理、コスト、および適用すべきトラフィックについてです。

サーキットスイッチング
- データ送信 前 に両端の間に 専用パス が設定され、会話全体を通じて維持され、終了時に解除されます。
- 利点:帯域幅 が予約されているため、速度が保証され一定であり、データは 順序通り 到着し、遅延も予測可能です。
- 欠点: 非効率 です。沈黙中も予約された回線が使用されず、他者が利用できないためです。また 設定に時間がかかる ため、パスを先に確立する必要があります。1つのリンクが破損すると回路が遮断され、会話は終了します。
- 古典的な例として、伝統的な電話網が挙げられる。

通話全体に割り当てられ、使用与否に関わらず占有

In circuit switching:
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Circuit switching reserves one path end-to-end (reserved bandwidth) — but it wastes the line during silences.
What is the main drawback of circuit switching?
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Reserving the path guarantees the rate and the order, and that is exactly what makes it wasteful. The other three describe packet switching.
パケットスイッチング
- メッセージはパケットに分割され、それぞれが独立して送信される。各パケットには宛先と送信元のアドレスおよびシーケンス番号が含まれる。
- 各ルーターはパケットごとに次のホップについて判断するため、パケットは異なるルートを通り、順序不同れに到達することがある。終端装置はシーケンス番号を使用してメッセージを再構成し、欠落したパケットは再要求できる。
- 利点:効率的である。なぜなら、一つのリンクが多くの通話を多重化しており、データがある時にのみ伝送されるからである。頑健性が高い。なぜなら、故障したリンクの周囲へトラフィックを迂回させるからである。
- 欠点:レイテンシの変動がある。パケットがルーターでキューイングされるためであり、パケットが紛失する可能性があるため、信頼性は上層のTCPによって追加される必要がある。

同じメッセージでも複数の経路を通り、最後に再構成される

A packet's journey across the internet
Step through packet switching. The message is split up, each packet finds its own way, and the destination puts them back together — which is why the internet is so efficient and hard to break.
A key advantage of packet switching is that it is:
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Sharing links is efficient and rerouting makes it resilient. The trade-off is variable latency and possible loss (TCP fixes that).
Because each packet carries a sequence number, the destination can reassemble the message in the right order and re-request any missing packet.
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Packets may arrive out of order or be lost; the sequence numbers (and TCP) put everything right.
ルーターの役割
- ルーターは2つ以上のネットワークを接続する。各パケットに対して、宛先IPアドレスを読み取り、ルーティングテーブルで検索し、適切なインターフェースから宛先へ向けてパケットを転送する。
- 通話の記憶を持たないため、表が更新された間に同一メッセージのパケットが異なるインターフェースから送出されることがある。
- このパケットごとの決定こそが、故障時の自動迂回を可能にしている。

Put the stages of sending a message by packet switching in order.
難易度 3/5 · 200 コイン + 今日初回達成時の小ボーナス
Split, address, route, arrive, reassemble. That is the five-mark answer to "explain how packet switching passes a message".
演習例:パケット交換の説明
- パケット交換がインターネット上でメッセージを渡すためにどのように使われるかを説明せよ。 [5]
- メッセージは小さなパケットに分解される。各パケットには宛先アドレス、送信元アドレス、シーケンス番号が含まれる。
- 各パケットはネットワーク内を独立して移動し、ルーターがそれぞれに対して次のホップを選択するため、異なる経路を通り、順序不同れに到達することがある。
- 宛先はシーケンス番号を使ってメッセージを正しい順序で再構成し、欠落したパケットは再度要求される。
- 文5つで満点5点。シーケンス番号や再構成を省略すると2点が減点される。

A router reads the destination address of every ____ and forwards it towards its destination.
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
The decision is made per packet, with no memory of the conversation, which is what lets traffic reroute around a failure automatically.
比較
| 側面 | 回線交換 | パケット交換 |
|---|---|---|
| パス | 専用、一対一で確保 | 共有、パケットごとに選択 |
| セットアップ | データ送信前まで遅い | なし |
| バンド幅使用 | 非効率、無音時は休止 | 効率的、多重化されている |
| 順序 | 常に順序通り | 順序不同着の可能性がある |
| 故障時 | 回線が切断される | 迂回する |
| 遅延 | 一定で予測可能 | 変動する |
| 適応 | 定常流、音声 | バースト流、Webやメール |

Match each term to what it means.
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
Circuit = one reserved path; packet = independent packets reordered by sequence number — what the internet uses.
The modern internet uses:
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
The internet uses packet switching for its efficiency and resilience.
演習例:どのトラフィックにどの手法か
- 電話通話と大規模ファイルのダウンロードが同一个 networks にある。それぞれの適した交換手法とその理由を述べよ。
- 電話通話は、低く予測可能な一定の遅延を持つ一定レートでの連続したストリームを必要とし、部品が到着が遅れたり順序不同着になったりすると深刻な問題が生じる。回線交換が適している。通話全体にパスが確保され、帯域幅が保証されるからである。
- ファイルのダウンロードは、使用前にファイルが再構成されるため到着順序や短い遅延を気にせず、バースト的である。パケット交換が適している。リンクは他のトラフィックと共有され、データが流れている時にのみ使用されるからである。
- 手法の名前、トラフィックの特性、そしてそれらを結びつけることを示すこと。
Which properties make circuit switching a good fit for a telephone call? Select すべて that apply.
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
Efficient sharing is packet switching's advantage, and it is the thing circuit switching gives up in exchange for the guarantees.
見落としやすいポイント
- パケットは順序不同着になり得るが、それを修正するのがシーケンス番号である。両方の要素が必要である。
- 回線交換の欠点は「古い」ということではなく、空席状態の確保された回線である。
- ルーターの決定はパケットごとに行われ、これが自動迂回を可能にしている。
- パケット交換単独では配送を保証しない。TCPが上層でそれを補う。
理解できましたか
- 回線交換は送信前に専用パスを確保する:帯域幅と順序が保証されるが、無音時は休止し、セットアップに時間がかかり、一度の故障で切断される
- パケット交換はメッセージを独立してルーティングされるパケットに分割し、アドレスとシーケンス番号を含み、宛先で再構成される
- ルーターはパケットごとに次のホップを決定するため、障害時にはトラフィックが自動的に迂回する。
- パケット交換は効率的で頑健だがレイテンシの変動があり、回線交換は定常的な音声流に適し、パケット交換はバースト性のデータに適している
何が問題でしたか?この内容はサイトの運営チームだけが確認します。