• Practice
  • About 14 min
  • 5 practice questions

Numerical problems: links, cables, bandwidth and transfer time

Solve the number questions of networking: links in each topology, ports needed, shared bandwidth and file transfer time.

If something looks wrong, please tell us.

Most networking questions are about definitions, but a few ask you to calculate. These are easy marks if you know the formula for each topology and the unit rules for speed. All numbers in this lesson are illustrative practice values.

Links and ports in topologies

Counting links for n devices
TopologyLinks (cables)Notes
BusOne shared backbone, with one drop per deviceIf the backbone breaks, the network fails
Starn, one for each deviceIf the centre fails, the network fails
RingnEach device joins two neighbours
Full meshn(n - 1)/2Each device needs n - 1 connections

Speed units

  • A byte is 8 bits. To convert a file in megabytes to megabits, multiply by 8.
  • Time = size in bits divided by speed in bits per second.
  • When bandwidth is shared equally, each user gets the total divided by the number of users.

Worked examples

Example 1. How many cables are needed for a full mesh of 7 computers, and how many network ports does each computer need? Links = 7 × 6 / 2 = 21. Each computer connects to the 6 others, so it needs 6 ports. For 10 computers the numbers are 45 links and 9 ports each.

Example 2. A star network has 12 computers around a switch. How many cables are required? One for each computer, so 12 cables. A full mesh of the same 12 computers would need 12 × 11 / 2 = 66 links, which shows why mesh is costly.

Example 3. An 8 MB file is sent over a link of 10 megabits per second. Time? 8 × 8 = 64 megabits, and 64 divided by 10 = 6.4 seconds.

Example 4. A connection of 100 Mbps is shared equally by 4 users who are all downloading at once. What speed does each get? 100 divided by 4 = 25 Mbps each. A 45 MB file for one user then takes 45 × 8 = 360 megabits divided by 25 = 14.4 seconds.

Example 5. A 30 MB file is downloaded at 16 megabits per second. 30 × 8 = 240 megabits, and 240 divided by 16 = 15 seconds.

Example 6. Compare a ring and a bus for 6 computers. A ring uses 6 links, because each computer joins its two neighbours in a closed loop. A bus uses one backbone cable and 6 short drops from it. In a full mesh the same 6 computers need 6 × 5 / 2 = 15 links. In an exam the key difference is usually reliability: the mesh survives the loss of any single link, while the failure of a bus backbone stops everything.

Mesh: n(n - 1)/2 links and n - 1 ports per device. Star: n cables. Bytes times 8 gives bits.

Traps in calculations

  • Using n(n - 1) without dividing by 2 for the mesh link count.
  • Forgetting that capital B and small b differ by a factor of 8.
  • Dividing megabytes by megabits per second directly.
  • Giving the answer in the wrong unit, such as minutes instead of seconds.

Key takeaways. A mesh of n devices has n(n - 1)/2 links; a star has n cables. Convert bytes to bits before dividing by a speed in bits per second. Shared bandwidth is divided among the users.

Check your understanding

  1. 1. How many links does a full mesh of 7 computers need?

    1. 14
    2. 21
    3. 42
    4. 49
    Show answer

    Answer: B. 7 × 6 / 2 = 21 links.

  2. 2. How many ports does each computer in a full mesh of 10 computers need?

    1. 10
    2. 45
    3. 9
    4. 11
    Show answer

    Answer: C. Each computer connects to the other 9, so it needs 9 ports.

  3. 3. An 8 MB file is sent at 10 megabits per second. How long does it take?

    1. 0.8 seconds
    2. 8 seconds
    3. 80 seconds
    4. 6.4 seconds
    Show answer

    Answer: D. 8 MB = 64 megabits. 64 divided by 10 = 6.4 seconds.

  4. 4. A star network has 12 computers around a switch. How many cables join them to the switch?

    1. 12
    2. 66
    3. 11
    4. 24
    Show answer

    Answer: A. There is one cable from each computer to the switch, so 12.

  5. 5. A 100 Mbps connection is shared equally by 4 users. How much does each get?

    1. 20 Mbps
    2. 50 Mbps
    3. 400 Mbps
    4. 25 Mbps
    Show answer

    Answer: D. 100 divided by 4 = 25 Mbps each.

Privacy · Terms · Refunds · Delivery