Circuit switching and packet switching
แนะนำใหม่
11:12
ทำไมต้องมีการกำหนดโปรโตคอล
คอมพิวเตอร์สองเครื่องต้องการสื่อสารกัน แต่เครื่องหนึ่งส่งข้อมูลในทิศทางหนึ่งและอีกเครื่องคาดหวังต่างออกไปมาก ผลลัพธ์คือข้อมูลไร้ความหมาย — เหมือนคนสองคนที่พูด…
บรรยายภาษาอังกฤษ · สลับคำบรรยายภาษาอังกฤษและภาษาจีนได้
ในบทเรียนนี้
| 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. |
เครือข่ายที่ถูกสร้างมาเพื่ออยู่รอดจากการทำลายตัวเอง
- In 1964 Paul Baran was asked how a communications network could keep working after a nuclear strike. Every existing network failed the test, because a telephone call reserved one path and cutting that path ended the call.
- His answer was to stop reserving paths. Chop each message into small blocks, address every block, and let each one find its own way; if a link disappears, the next block simply goes round it.
- ไอเดียนี้ถูกปฏิเสธว่าเป็นไปไม่ได้เป็นเวลาหลายปี ปัจจุบันเป็นวิธีที่ข้อมูลส่วนใหญ่เคลื่อนที่, และนั่นคือเหตุผลว่าทำไมอินเทอร์เน็ตจึงไม่มีศูนย์กลางที่จะตัด
- บทเรียนนี้เกี่ยวกับ การสลับวงจร (circuit switching) และ การสลับแพ็กเก็ต (packet switching): วิธีทำงานของแต่ละอย่าง ค่าใช้จ่ายของแต่ละแบบ และประเภทการจราจรที่เหมาะสมกับแต่ละวิธี

Circuit switching
- Dedicated path ถูก setup ระหว่างสอง ends ก่อนข้อมูลจะถูกส่ง, Hold ทั้งการสนทนา, และปล่อยที่ปลาย
- ข้อดี: แบนด์วิดท์ ถูกจองไว้ ดังนั้นอัตราจึงรับประกันได้และคงที่ รวมถึงข้อมูลจะมาถึงเป็นลำดับที่มีเวลาหน่วงที่คาดเดาได้
- ข้อเสีย: มี ประสิทธิภาพต่ำ เพราะในช่วงที่เงียบ เส้นที่จองไว้จะว่างเปล่าและไม่ให้ผู้อื่นใช้ และ ใช้เวลาในการตั้งค่าช้า เพราะต้องสร้างเส้นทางก่อน หากมีลิงก์ใดขาด การสื่อสารจะหยุดทันที
- ตัวอย่างคลาสสิกคือเครือข่ายโทรศัพท์แบบดั้งเดิม

สงวนไว้สำหรับการโทรทั้งหมด ใช้งานหรือไม่ก็ตาม
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.
Packet switching
- ข้อความถูกแบ่งเป็น แพ็กเก็ต (packets) แต่ละตัวส่ง แยกอิสระ จากกัน ทุกแพ็กเก็ตมีทั้ง ที่อยู่ปลายทางและต้นทาง และ หมายเลขลำดับ
- Each router makes a per-packet decision about the next hop, so packets may take different routes and arrive out of order. The destination uses the sequence numbers to reassemble the message, and missing packets can be requested again.
- Benefits: efficient, because one link is multiplexed across many conversations and carries data only when there is data; robust, because traffic reroutes around a failed link.
- Drawbacks: variable latency, since packets queue at routers, and packets can be lost, so reliability must be added above, by TCP.

Same message, many paths, reassembled at the end
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.
What a router does
- A router joins two or more networks. For each packet it reads the destination IP address, looks it up in its routing table, and forwards the packet out of the appropriate interface towards the destination.
- It holds no memory of the conversation: two packets of the same message may leave by different interfaces if the table has changed between them.
- That per-packet decision is exactly what makes rerouting around a failure automatic.

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".
Worked example: describe packet switching
- Explain how packet switching is used to pass a message across the internet. [5]
- The message is broken into small packets. Each packet carries the destination address, the source address and a sequence number.
- Each packet travels through the network independently, with routers choosing the next hop for each one, so packets may take different paths and arrive out of order.
- The destination uses the sequence numbers to reassemble the message in the right order, and any missing packet can be requested again.
- Five sentences, five marks. Leaving out the sequence numbers or the reassembly loses two of them.

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.
Side by side
| Aspect | Circuit switching | Packet switching |
|---|---|---|
| path | dedicated, reserved end to end | shared, chosen per packet |
| setup | slow, before any data | none |
| bandwidth use | inefficient, idle during silences | efficient, multiplexed |
| order | always in order | may arrive out of order |
| on a failure | the circuit is cut | reroute around it |
| delay | constant and predictable | variable |
| suits | constant-rate flows, voice | bursty flows, web and email |

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.
Worked example: which method for which traffic
- A phone call and a large file download share a network. Which switching method suits each, and why?
- The phone call needs a steady stream at a constant rate with low, predictable delay, and it would suffer badly if pieces arrived late or out of order. Circuit switching suits it: a path is reserved for the whole call and its capacity is guaranteed.
- The file download does not care about the order of arrival or short delays, since the file is reassembled before it is used, and it is bursty. Packet switching suits it: the link is shared with other traffic and used only when data is flowing.
- Name the method, name the property of the traffic, and connect them.
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.
คะแนนที่หลุดหายไป
- Packets can arrive out of order, and the sequence numbers are what fix that. Both halves are needed.
- Circuit switching's drawback is the idle reserved line, not "it is old".
- The router's decision is made per packet, which is what makes rerouting automatic.
- Packet switching does not guarantee delivery on its own; TCP adds that above it.
คุณเข้าใจแล้ว
- circuit switching reserves a dedicated path before sending: guaranteed bandwidth and order, but idle during silences, slow to set up, and cut by one failure
- packet switching splits the message into independently routed packets carrying addresses and sequence numbers, reassembled at the destination
- a router decides the next hop per packet, so traffic reroutes around failures automatically
- packet switching is efficient and robust with variable latency; circuit switching suits constant voice flows, packet switching suits bursty data
เกิดปัญหาอะไรขึ้น? เฉพาะทีมเว็บไซต์เท่านั้นที่เห็นข้อมูลนี้