The Internet: bandwidth, latency, fault tolerance & parallel computing

Computer Science · AP CSP

Question 1 of 10

0

    In a client–server model, what does the server do?

    Stuck? Read the explanation

    Unlocks at a streak of 5 correct answers in a row.

    Print a free worksheet (PDF)

    Embed this practice on your site or class page

    Paste this HTML into your page. Students practise right there; it is free and needs no account.

    The Internet: bandwidth, latency, fault tolerance & parallel computing explained

    The Internet is a global network of networks that carries data between devices by splitting messages into packets. Its performance and reliability depend on several ideas. Bandwidth is the maximum rate at which data can be sent over a connection, usually measured in bits per second (bps), such as megabits per second. Latency is the delay between sending data and it arriving, measured in milliseconds. High bandwidth does not guarantee low latency, so a video call can still stutter on a fast connection that has long delays.

    Fault tolerance means a system keeps working when part of it fails. The Internet achieves this through packet switching: if one router is down, packets can take another route, and lost packets can be sent again. Parallel computing is a different idea. It divides a task into parts that run at the same time on several processors, which can finish large jobs sooner. Parallel computing has limits. Tasks that cannot be split, or that need results from each other, gain less from extra processors.

    Worked example

    A 50 MB file is sent over a connection with a bandwidth of 20 Mbps and a latency of 0.1 seconds. Estimate the total time to send it.

    1. Convert the file size to bits, using 1 byte = 8 bits: 50×8=40050 \times 8 = 400 megabits.
    2. Transfer time is size divided by bandwidth: 400 Mb20 Mbps=20\dfrac{400\ \text{Mb}}{20\ \text{Mbps}} = 20 seconds.
    3. Add the latency as a simple estimate of the start-up delay: 20+0.1=20.120 + 0.1 = 20.1 seconds.

    The bandwidth controls most of the time here. Doubling the bandwidth would halve the transfer time to about 10 seconds, while the latency would stay the same.

    What you will practise

    110 multiple-choice questions (Easy, Medium, Hard). Each answer is followed by an explanation.

    Example questions

    • Which statement correctly distinguishes the internet from the World Wide Web?
    • What is bandwidth in a network?
    • What is latency in a network?
    • What does it mean for a network to be fault tolerant?
    • In packet switching, what happens to a large file before it is sent over the internet?
    • What is the main role of a router?
    • What does the Domain Name System (DNS) do?
    • What is parallel computing?

    …and 102 more.