Networks: latency, throughput and layered delivery
แนะนำใหม่
7:26
เครือข่าย
คุณพิมพ์ที่อยู่เว็บไซต์บนโทรศัพท์ที่โรงเรียน ภายในไม่ถึงหนึ่งวินาทีคำขอของคุณจะผ่านเครือข่าย Wi-Fi ของโรงเรียน ตัวเราเตอร์ ผู้ให้บริการอินเทอร์เน็ต และอุปกรณ์อื่นๆ …
บรรยายภาษาอังกฤษ · สลับคำบรรยายภาษาอังกฤษและภาษาจีนได้
ในบทเรียนนี้
| English | ความหมาย |
|---|---|
| latency/ˈleɪtənsi/ | ความหน่วง |
| throughput/ˈθruːpʊt/ | ปริมาณงานที่ส่งผ่านได้ |
| bandwidth/ˈbændwɪdθ/ | The data-carrying capacity of a network link, commonly measured in bits per second in this course. |
| protocol/ˈprəʊtəkɒl/ | An agreed set of rules governing communication between devices or systems. |
| packet/ˈpækɪt/ | Units of data sent through a network, containing payload and control information such as addressing details. |
อะไรจะอธิบายการสังเกตนี้ได้?
- ข้อความขนาดเล็กอาจมาถึงล่าช้าบนลิงก์แบนด์วิดท์สูง ความจุและความหน่วงวัดคุณสมบัติต่างกัน
What did the pigeon have more of than the ADSL line?
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Its latency was over an hour.
สร้างโมเดล
- แพ็กเก็ตนำข้อมูลที่ระบุที่อยู่ผ่านเครือข่าย
- A layered model separates responsibilities such as application meaning, transport delivery and network routing.
- แบนด์วิดท์อธิบายความจุ; throughput คืออัตราข้อมูลที่ได้ใช้จริง; latency คือเวลาหน่วง
- throughput: อัตราการถ่ายโอนข้อมูลที่มีประโยชน์ที่ได้ใช้จริง
- latency: เวลาหน่วงที่เกิดขึ้นในการสื่อสาร
Match each task to the measure that matters most.
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Judge by the task.
เลือกหลักฐานมาทดสอบสมมติฐาน
- เวลาส่งขึ้นอยู่กับขนาดข้อมูลและอัตรา
- รวมเวลาหน่วงอาจรวมถึงเวลาแพร่กระจาย การประมวลผล และการรอคิว
- การเข้ารหัสปกป้องเนื้อหาตามสมมติฐานของตนแต่ไม่ขจัดการจราจรติดขัดหรือการเปิดเผยข้อมูลเมตาทุกชนิด
ในห้องปฏิบัติการ: ลาดลายเส้นทางส่งข้อมูลโดยใช้โมเดลท้องถิ่นที่ระบุไว้ บันทึกขนาดแพ็กโหลด หน่วย และเวลาที่วัดได้ ใช้เครือข่ายที่โรงเรียนอนุมัติและข้อความสังเคราะห์ ห้ามสแกนหรือดักจับการจราจรของผู้ใช้รายอื่น
Which TCP/IP layer does IP belong to?
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
TCP and UDP are transport.
ทำงานจากปริมาณที่ทราบค่า
- ที่ทราบ: ไฟล์ขนาด 8 เมกะบิต ข้ามลิงก์ขนาด 2 เมกะบิต/วินาที
- เวลาส่งข้อมูลในอุดมคติ = ขนาด/อัตรา = 8/2 = 4 วินาที
- ค่าใช้จ่ายของโปรโตคอล ผู้ใช้งานรายอื่น และความหน่วง อาจทำให้เวลาในการดำเนินการจริงช้ากว่า
คุณลองทำดู: ไฟล์ขนาด 12 เมกะบิต ข้ามลิงก์ขนาด 3 เมกะบิต/วินาที คำนวณเวลาส่งข้อมูลในอุดมคติ
A faster rate can still leave a wait
Compare two links for the same payload and separate transmission time from fixed one-way delay.
TCP resends lost packets; UDP does not.
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
UDP is faster but unreliable.
ตรวจสอบข้อสรุปและขอบเขต
- A megabyte is eight megabits before considering overhead.
- เชื่อมต่อที่มีอัตราเร็วสูงกว่าไม่ได้การันตีความหน่วงต่ำหรือจุดเชื่อมต่อที่ปลอดภัย
ไม่ถูกต้อง: การมีช่องว่างข้อมูลสูง (high-bandwidth) ไม่การันตีความหน่วงเป็นศูนย์ ช่องว่างข้อมูลคือความจุ - ว่าสามารถส่งผ่านได้มากเท่าไรต่อวินาที ส่วนความหน่วงคือเวลาดีเลย์ -ว่าสัญญาณหนึ่งใช้เวลานานแค่ไหน เชื่อมต่อที่มีความจุมหาศาลก็อาจมีความหน่วงสูงได้ เช่น การเชื่อมต่อผ่านดาวเทียม
- แพ็กเก็ตนำข้อมูลที่ระบุที่อยู่ผ่านเครือข่าย
- เวลาส่งขึ้นอยู่กับขนาดข้อมูลและอัตรา
- Watch for: A megabyte is eight megabits before considering overhead.
600 MB (1 MB = 10⁶ bytes) is transferred in 120 s. What is the throughput in Mbit/s?
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
600 × 8 = 4,800 Mbit; ÷ 120 = 40 Mbit/s.
การ์ดนี้เป็นการ์ดใหม่ จึงแสดงเป็นภาษาอังกฤษจนกว่าคำแปลจะพร้อม
Where delay comes from
- Propagation (distance), transmission (size ÷ bandwidth), queuing at routers and processing.
- Adding bandwidth does not reduce propagation delay across an ocean.
Which are sources of network delay?
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Processing adds a little too.
การ์ดนี้เป็นการ์ดใหม่ จึงแสดงเป็นภาษาอังกฤษจนกว่าคำแปลจะพร้อม
Bandwidth is not throughput. A "100 Mbit/s" connection shared by many users, with protocol overhead and lost packets, delivers less. Measure what is achieved.
A 100 Mbit/s connection always delivers 100 Mbit/s.
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Throughput is lower than bandwidth.
การ์ดนี้เป็นการ์ดใหม่ จึงแสดงเป็นภาษาอังกฤษจนกว่าคำแปลจะพร้อม
Latency is the delay before data arrives; throughput is the rate actually achieved; bandwidth is the maximum. Networks deliver data in layered protocols and packets; choose TCP for reliability and UDP for speed, and judge performance by the task.
A school wants to move its 3 TB video archive to a cloud server over a 50 Mbit/s link. Estimate the ideal time and suggest whether a physical drive might be better.
Convert, calculate, judge.
เกิดปัญหาอะไรขึ้น? เฉพาะทีมเว็บไซต์เท่านั้นที่เห็นข้อมูลนี้