Teachers' Portal  /  A-Level Computer Science 9618  /  Communication  /  Wired and wireless media, Ethernet and CSMA/CD
Lesson pack · A-Level Computer Science 9618 · 2.1 · AS Level

Wired and wireless media, Ethernet and CSMA/CD

Copper, glass and air. Data can travel as electrical pulses in copper, as light in glass fibre, or as radio waves, microwaves and satellite signals.

Student lesson Lab, full screen
At a glance

The shape of the lesson

Topic
Communication
Syllabus reference
Cambridge International AS and A Level Computer Science 9618, 2.1
Level
AS Level
Duration
45 minutes, lab-led; stretches to a 60 minute block (see the contingency notes)
Position in topic
Lesson 4 of 6 in Communication; follows Cloud computing; leads into The internet and the world wide web
Central model
Fig. 1: CSMA/CD: listen, transmit, detect a collision, jam, back off for a random time and retry
Cooperative structure
Assessment
Stage 1 check and the exam-style plenary from the student lesson, plus the worksheet as the exit task
Learning objectives

By the end of the lesson, learners can

Section by section
  • Wired media: Compare media using the same four headings every time: bandwidth (bit rate), distance, interference and cost.
  • Wireless media: Wireless media are all electromagnetic waves; they differ in frequency, range and whether they need line of sight.
  • Ethernet and CSMA/CD: In the lab, choose CSMA/CD, then make two PCs send at almost the same moment.
Key points to leave on the board
  • Compare media by: bandwidth, distance (attenuation), interference, cost.
  • Wireless: mobility and easy set-up against interception, interference and lower speed.
  • CSMA/CD: listen, transmit, detect collision, jam signal, random wait, retry.
  • Avoidance: switches with full-duplex links stop collisions happening.
The core visual model

One picture every idea returns to

Copper cable (twisted pair or coaxial) carries electrical signals: cheap and easy to install, but it suffers from interference and attenuation. Fibre-optic cable carries pulses of light: very high bandwidth over long distances, immune to electrical interference, but more expensive. Wireless media (radio waves including WiFi, microwaves, satellites) give mobility without cables but are slower, less secure and more affected by interference. Ethernet is the standard protocol for wired LANs; on a shared cable it uses CSMA/CD: listen before transmitting, detect any collision, send a jam signal, then wait a random time before trying again.

CSMA/CD on a shared Ethernet cable listen: is thecable idle? transmit andkeep listening collision?send jam signal wait a randomtime, retry ABCD ✶ A and C both sense an idle cable and send: their frames collide
Fig. 1: CSMA/CD: listen, transmit, detect a collision, jam, back off for a random time and retry
Lesson sequence

Forty-five minutes, phase by phase

TimePhaseWhat happens in the roomGrouping
0 to 5 minHook: predictOpen with the question in the title, Copper, glass and air.. Data can travel as electrical pulses in copper, as light in glass fibre, or as radio waves, microwaves and satellite signals. Put the figure on the board: it is the one picture every idea in the lesson returns to.Whole class, then pairs
5 to 13 minTeach and check: Wired mediaCompare media using the same four headings every time: bandwidth (bit rate), distance, interference and cost.Whole class, then pairs
13 to 21 minTeach and check: Wireless mediaWireless media are all electromagnetic waves; they differ in frequency, range and whether they need line of sight.Pairs
21 to 30 minTeach and check: Ethernet and CSMA/CDIn the lab, choose CSMA/CD, then make two PCs send at almost the same moment. Project tab 6 of the lab (CSMA/CD on a shared cable) and let a student drive it while the class predicts. Model the worked example Why random? on the board, one line at a time. Your turn: What does CSMA/CD stand for?Connect-Extend-Challenge
30 to 36 minCheckThe four Stage 1 questions from the student lesson, answered on mini whiteboards or by show of fingers. Re-teach the one most get wrong.Individual, then whole class
36 to 43 minPlenaryThe exam-style questions from Stage 2, one at a time: thirty seconds alone, then a random call. The feedback lines in the key give the examiner's wording.Individual, random call
43 to 45 minExit and homeworkSet the worksheet below (6 questions, 21 marks). Learners self-assess against the objectives before they leave.Individual
Timing and contingency

Protect the parts that carry the learning

The sequence carries about fifty minutes of material, so the lab is driven by one student while the class predicts rather than explored freely. Times are a guide.

Protected: the check at 30 minutes. It is the only individual read on whether the key idea landed, and it is not cut.

Cut first if the build overruns: the last check in Ethernet and CSMA/CD, never the check or the plenary.

In a 60 minute block: run worksheet questions 1 to 3 in class as a Rally Coach set and model both the hardest worked example and its check live.

Running the cooperative task

Connect-Extend-Challenge

After the new idea, each student writes three lines: how it connects to what they knew, how it extends their thinking, and what still challenges them. Pairs compare, then the challenges become the plenary.

The full structure, with its variations and the other twelve, is on the cooperative-learning page.

Examiner traps to pre-empt

What to head off, and how

Trap learners fall intoTeaching move that pre-empts it
Wireless is not insecure by nature, but its signals spread beyond the building.The mark is for saying that signals can be intercepted, so data must be encrypted.
CSMA/CD does not prevent every collision: it detects them and recovers.Make sure the answer includes the jam signal and the random wait, which are the commonly missed marks.
Worksheet

Wired and wireless media, Ethernet and CSMA/CD: worksheet

6 questions, 21 marks. Written in the style of the papers; no past paper question is reproduced.

NameClassDate
Q1 · explain[4 marks]

Describe two differences between copper cable and fibre-optic cable.

Q2 · recall[3 marks]

Describe the characteristics of satellite communication.

Q3 · explain[5 marks]

Explain how CSMA/CD is used to manage the transmission of frames on a shared Ethernet cable.

Q4 · apply[4 marks]

A café wants to provide internet access to its customers. Discuss whether it should use a wired or a wireless network.

Q5 · explain[2 marks]

Explain why a device waits a random amount of time after a collision.

Q6 · analysis[3 marks]

A rural farm 15 km from the nearest town needs an internet connection. There are no cables to the farm. Evaluate the use of a microwave link and a satellite link.

Answer key and marking notes
Q1 · 4 marks
  • Copper carries electrical signals; fibre carries pulses of light.
  • Fibre has a higher bandwidth / bit rate than copper.
  • Fibre suffers less attenuation, so it can carry data further without a repeater.
  • Fibre is immune to electromagnetic interference / harder to tap; copper is cheaper and easier to install (any two differences, both sides).
Q2 · 3 marks
  • Microwave signals are sent up to a satellite and relayed back down to another location.
  • Covers very large areas, including oceans and remote regions without cables.
  • Long distance (about 36 000 km to a geostationary satellite) causes a noticeable delay / latency; signals can be affected by weather.
Q3 · 5 marks
  • A device listens to the cable to check whether it is idle before transmitting (carrier sense).
  • If the cable is busy, it waits until it is idle; then it transmits.
  • While transmitting, it monitors the cable to detect a collision.
  • If a collision is detected, it stops transmitting and sends a jam signal to all devices.
  • Each device waits a random time before trying to transmit again.
Q4 · 4 marks
  • Wireless: customers can use their own phones and laptops anywhere in the café without cables.
  • Easy and cheap to install, and any number of customers can join.
  • But signals can be intercepted, so the network should be encrypted / separated from the café's own systems.
  • Wireless is the better choice because mobility for customers matters more than the higher speed of cables.
Q5 · 2 marks
  • If both devices waited the same time, they would transmit again at the same moment ...
  • ... and collide again; a random wait makes it likely one starts first and the other senses the cable is busy.
Q6 · 3 marks
  • Microwave link: higher bandwidth and less delay than satellite, but needs line of sight between masts/dishes, which hills or trees may block.
  • Satellite link: works anywhere with a view of the sky, but has high latency (delay) because of the distance to the satellite and can be affected by weather.
  • Conclusion: microwave if a line-of-sight path to the town is available, otherwise satellite.
Quiz

6 multiple-choice questions on this lesson

From the topic question bank. Assign them in the app for a marked score in your gradebook, or run the topic as a class game.

Q11 mark

What does CSMA/CD stand for?

  • ACarrier Sense Multiple Access with Collision Detection
  • BCarrier Signal Multiple Access with Collision Deletion
  • CCollision Sense Multiple Access with Carrier Detection
  • DCarrier Sense Multiple Address with Collision Detection
Q21 mark

A telecoms company is laying a new cable under the sea between two countries. Which medium should it use, and why?

  • AFibre-optic cable, because it has very high bandwidth and low attenuation over long distances
  • BTwisted-pair copper cable, because it is cheaper and easier to join than any other cable
  • CCoaxial copper cable, because its shielding makes it immune to all interference
  • DFibre-optic cable, because it is cheaper and less fragile than copper cable
Q31 mark

Two devices on a shared Ethernet cable transmit at the same moment and their frames collide. What do they do next?

  • AStop sending, transmit a jam signal, then each wait a random time before listening and trying again
  • BCarry on sending their frames, and the receiver puts the two frames back in order
  • CStop sending, then both wait the same fixed time before sending again
  • DSend a jam signal, then retransmit straight away while the cable is still free
Q41 mark

A signal is relayed by a geostationary satellite. It travels about 72 000 km in total, up to the satellite and back down. Radio signals travel at about 300 000 km per second. What is the delay?

  • A0.24 s
  • B0.12 s
  • C4.2 s
  • D0.024 s
Q51 mark

Why does each device wait a random time after a collision, rather than a fixed time?

  • AWith a fixed time both devices would sense the cable free together and collide again; a random wait makes it likely one starts first
  • BA random wait gives the jam signal time to reach the destination device before the frame is resent
  • CA random wait lets the switch decide which device has the higher priority
  • DA random wait is shorter on average than a fixed one, so the network is faster
Q61 mark

Why do WiFi networks use collision avoidance (CSMA/CA) instead of the collision detection used on a shared Ethernet cable?

  • AA wireless device cannot reliably detect a collision while it is transmitting, so it tries to avoid collisions instead
  • BRadio signals cannot collide, because each device uses a different frequency
  • CWiFi devices are connected to their own switch port, so there is only one sender per link
  • DCollision detection would let anyone in range read the data, so it would be insecure
Quiz key
Q1: A

CSMA/CD is Carrier Sense Multiple Access with Collision Detection: devices sense the carrier, share (multiply access) one medium and detect collisions. The second option garbles "sense" and "detection", the third swaps carrier and collision, and the fourth replaces "access" with "address".

Q2: A

Fibre carries light with very high bandwidth and low attenuation, so it can cover long distances with few repeaters, which is why undersea and backbone links use it. Twisted pair is cheap but attenuates quickly and has far lower bandwidth. Coaxial shielding reduces interference but does not remove it, and coax still attenuates much faster than fibre. Fibre is more expensive and more fragile than copper, so the last reason is wrong even though the medium is right.

Q3: A

Under CSMA/CD each device stops, sends a jam signal so every device knows there was a collision, then waits a random back-off time before sensing the cable and retrying. Collided frames are corrupted, so carrying on achieves nothing. A fixed wait would make the two devices retry together and collide again, and so would retransmitting immediately.

Q4: A

Time = 72 000 ÷ 300 000 = 0.24 s, the noticeable latency of a satellite link. 0.12 s uses only one leg of the journey (36 000 km); 4.2 s divides the speed by the distance; 0.024 s is a power-of-ten slip.

Q5: A

The two devices detected the collision together; equal waits would put them back on the cable together. Random back-off makes it likely that one device starts first, so the other senses a busy cable and waits. The jam signal is for every device and does not need a random delay. A shared bus has no switch choosing priorities. The point is avoiding a repeat collision, not a shorter average wait.

Q6: A

A transmitting wireless device cannot hear a weak collision over its own strong signal, so detection does not work; WiFi avoids collisions instead. Devices on one WiFi channel share the same frequencies, so collisions can happen. Separate full-duplex switch ports describe modern wired Ethernet. Collision detection has nothing to do with whether data can be intercepted.

Lab and demo

What to project

The student lesson embeds these tabs. Open them full screen on the projector; every slider has a drag handle on the stage.

Slides

Slides for this lesson

A projectable deck for every pack is on the way. Until then, present the student lesson full screen: its sections, figure and lab tabs follow the same order as the plan above.

Also for this topic

Everything else you can use

Original work by the TheLucidSTEM team. The worksheet items are written in the style of the papers; no past paper question is reproduced.
Previous lessonCloud computing