2.1.5 Ethernet and Bit Streaming
Devices need rules for taking turns when they share a network connection. A video player also needs enough incoming data to keep playing without interruptions. These are different problems, but both involve how data moves through a network.
This lesson examines Ethernet and collisions, the recovery process called CSMA/CD, and the way bit streaming delivers live or stored media. The aim is to explain each process clearly, not to memorise extra network standards.
After studying this page, you should be able to
- describe Ethernet and recognise that it sends data in frames;
- explain why shared Ethernet can have a collision;
- describe CSMA/CD in the correct order, including what happens after a collision;
- explain why a full-duplex switched link does not use CSMA/CD;
- distinguish live (real-time) from on-demand streaming;
- explain how media bit rate, broadband speed and buffering affect playback.
1. Ethernet: rules for a wired LAN
A computer does not send an ordinary document directly along a cable as one continuous object. Data is organised for transmission. On an Ethernet link, the unit sent is a frame. The frame carries data as well as information needed for delivery over the local link.
| Part of the frame | Why it matters |
|---|---|
| Source MAC address | Identifies the network interface that sent the frame. |
| Destination MAC address | Identifies the local interface the frame is intended to reach. |
| Data (payload) | Contains the information being carried, which may include an IP packet. |
A switch reads local addressing information to decide which port should receive an Ethernet frame. This is different from a router, which uses an IP address to choose how to forward a packet between networks. The switch-versus-router distinction was covered in Lesson 4; here the focus is on how Ethernet devices access their local link.
Do not confuse two terms
A frame is used for communication on a local link. An IP packet is used for delivery across IP networks. In a typical wired LAN, an Ethernet frame can carry an IP packet as its data.
3. CSMA/CD: the process you must know
The name describes the idea: devices share a connection, listen for other traffic, and check whether their own transmission has collided with another.
| Stage | What the sending device does | Reason |
|---|---|---|
| 1. Listen | Checks whether another device is using the medium. | Avoid starting while a transmission can already be detected. |
| 2. Wait if busy | Delays sending and checks again. | Only one successful shared-medium transmission can occur at a time. |
| 3. Transmit | Starts sending the frame when the medium appears free. | Uses an available opportunity to send data. |
| 4. Detect | Monitors the connection while transmitting. | A collision is still possible after the device starts. |
| 5. Stop and signal | If a collision is detected, stops its frame and sends a jam signal. | Other devices need to recognise that the attempt failed. |
| 6. Back off and retry | Waits a randomly chosen delay, listens again, and attempts retransmission. | Different delays reduce the chance of another simultaneous attempt. |
Process to remember
Listen β wait if busy β send if free β monitor β stop/jam after a collision β random wait β retry.
Does CSMA/CD prevent every collision?
No. Listening makes collisions less likely, but cannot always stop two devices from starting almost together. Collision detection and retransmission allow the devices to recover after an unsuccessful attempt.
4. Worked example: two devices need the same old cable
A temporary training workshop has kept an old shared Ethernet system for demonstrations. A label printer controller and a stock counter both want to transmit a frame. The following events show one possible outcome.
| Moment | Controller | Stock counter |
|---|---|---|
| A | Listens and detects no activity. | Also detects no activity. |
| B | Begins sending. | Begins sending before A's signal arrives. |
| C | Detects interference and ends its attempted frame. | Detects the same problem and stops. |
| D | Waits for its randomly chosen delay. | Waits for a different randomly chosen delay. |
| E | Listens again and sends when possible. | May send later when the medium is free. |
The exact waiting times are not important at this level. What matters is why the wait is random: if both devices always restarted at the same moment, another collision would be more likely.
Check your reasoning: Why might both devices believe the medium is free?
Because signals take time to reach other devices. One may begin transmitting before it can detect the other's newly started transmission.
5. Modern switched Ethernet: why CSMA/CD is usually unnecessary
Today's wired LANs normally connect each device to an individual port on a switch. With a full-duplex link, the device and switch can transmit in both directions simultaneously using separate signalling paths. They are not competing to transmit on one shared half-duplex connection.
| Question | Older shared Ethernet | Modern switched, full-duplex Ethernet |
|---|---|---|
| Who uses the link? | Several devices compete for one medium. | One device has a dedicated link to a switch port. |
| Can two senders collide? | Yes, on the shared medium. | No shared-medium collision on the full-duplex link. |
| Is CSMA/CD required? | Yes, for managing shared-medium access. | No; the shared collision condition is absent. |
| Where do frames go? | Signals travel across the shared medium. | The switch directs frames using MAC address information. |
A switch may temporarily store an incoming frame if its required outgoing port is busy. This is a switch buffer, used to handle traffic waiting to leave the switch. Do not confuse it with the media buffer used by a video player later in this lesson.
One important condition
Do not write simply βall star networks have no collisionsβ. An older star with a hub still shares its medium. A switched, full-duplex connection avoids that collision situation.
6. What is bit streaming?
When you stream a recording, you do not normally have to wait until the entire media file has arrived. The player receives part of the media, prepares it for playback, and continues receiving later parts as you watch or listen.
| Method | When can playback begin? | What must be available? |
|---|---|---|
| Complete-file download first | After the whole file has been received, in this simple comparison. | Enough local storage for the complete file. |
| Streaming | After an initial amount of media data has arrived. | A suitable ongoing connection while playback continues. |
Streaming is useful for long recordings because users can start watching sooner. However, its quality depends on the network continuing to deliver media quickly enough.
Exam wording
A strong definition says that data arrives continuously and playback can begin before the full media file is received.
7. Two methods: real-time and on-demand
| Point | Real-time (live) | On-demand |
|---|---|---|
| When does the content exist? | It is created as the event takes place. | It was recorded and stored earlier. |
| When is it transmitted? | During the event, with some delivery delay. | After the user requests the stored item. |
| Example | An orchestra rehearsal is transmitted to families watching at home while the rehearsal happens. | A student selects last week's stored rehearsal video to practise a piece. |
| Can playback use a buffer? | Yes, but buffering adds delay behind the live event. | Yes, and extra data may be prepared before it is needed. |
Real-time does not mean the signal reaches viewers at the exact instant it is recorded. Network delivery and buffering take time. The important point is that the media is being produced and delivered during the event.
Common mistake
A recorded video does not become live simply because someone is watching it now. Classify the stream by whether the material is being created now or was stored before the user selected it.
8. Buffering: why a player stores incoming data
A media player receives information from the network in an uneven flow. A buffer helps it play at a steady rate even when a small delay temporarily slows the incoming data. Data enters the buffer; the player takes data from the buffer as playback continues.
- Media starts arriving from the server.
- The player stores some of it in a buffer.
- Playback uses the stored data while new data arrives.
- If the incoming flow is slow for too long, the buffer becomes empty.
- The player may pause until enough additional data is received.
A short interruption may not be noticeable if enough data remains in the buffer. A longer slowdown can interrupt playback. Many streaming services may also offer a lower bit-rate version to reduce the amount of data needed each second.
9. Bit rate and broadband speed
For smooth playback, the player's network connection must deliver media fast enough for the rate at which the player consumes it. Two measurements must be distinguished.
Broadband download speed: the rate at which the connection can receive data from the network. The available rate can change during use.
| Connection compared with stream | Likely result |
|---|---|
| Available download rate is consistently higher than the media bit rate | Incoming data can normally keep the buffer supplied. |
| Available download rate is lower for a long period | The player uses stored data faster than new data arrives; playback may pause. |
| Download rate changes during playback | A buffer helps during brief slowdowns; longer slowdowns may still cause interruptions. |
Worked comparison
A recorded training video is being streamed at 4 Mb/s. During a busy period, only 2 Mb/s of download capacity is available to that player. On average, the player is using media twice as quickly as data is arriving. The buffer will eventually run low unless the download rate improves or the stream changes to a lower bit rate.
If the available rate later becomes 10 Mb/s, there is more capacity to refill the buffer. In practice, some bandwidth is also used for other information, so having a little capacity above the media bit rate is useful.
Important distinction
A high broadband speed does not create a high-quality video. The original media quality and chosen bit rate also matter. Equally, a fast advertised connection does not guarantee that all of its capacity is available at every moment.
10. Common exam confusions
| Statement | Correct reasoning |
|---|---|
| βCSMA/CD always prevents collisions.β | It checks before sending and detects collisions if they still occur. It then manages retrying. |
| βAll Ethernet links use CSMA/CD.β | It is associated with shared half-duplex Ethernet, not normal switched full-duplex connections. |
| βA hub and a switch behave identically.β | A hub repeats signals across its shared connections; a switch normally forwards frames to relevant ports. |
| βLive streaming means zero delay.β | The event is transmitted as it happens, but buffering and transmission introduce some delay. |
| βBuffering makes a slow connection faster.β | Buffering stores already received data. It smooths short delays but cannot increase the incoming speed. |
| βOn-demand means downloaded before playing.β | A stored recording can start playing as data streams in, before the whole file has arrived. |
How to gain explanation marks
State what happens, explain why it happens, and connect it to the situation. For a question about stopping video, write that data arrives more slowly than playback uses it, so the buffer empties and playback pauses.
11. Interactive: Streaming Buffer Simulator
This simulator models the main idea of bit streaming. Choose a media type or adjust the rates, then watch the buffer fill and drain as data arrives and the media player consumes it.
12. Original exam-style practice
These questions were created for this study page. They are not taken from a published examination. Give short answers using correct networking vocabulary.
Knowledge and explanation
- State what Ethernet is used for and name the unit of data sent on an Ethernet link. [2]
- Explain why two devices can cause a collision on a shared Ethernet cable. [2]
- Describe what a device does after detecting a collision while using CSMA/CD. [3]
- Explain why a random waiting period is used before retransmission. [2]
- Explain why a modern switched full-duplex connection does not normally use CSMA/CD. [2]
- Distinguish real-time streaming from on-demand streaming. [2]
- Explain the role of a buffer in keeping audio playback continuous. [2]
Apply it: community rehearsal service
A neighbourhood music group sends a live rehearsal to members who are away. The group also offers recordings from previous months. An old training room contains a shared Ethernet connection. Some online viewers experience pauses when using a slow Internet connection.
- Describe how CSMA/CD responds if two training-room computers transmit together and collide. [4]
- Identify which service is real-time and which is on-demand. [2]
- Explain why a viewer's recording pauses when the available download speed stays below the stream's bit rate. [2]
Reveal suggested marking points β 8 marks
(a) [4] A device listens to the shared medium and transmits if free [1]; it checks for collisions while sending [1]; after detecting a collision it stops and sends a jam signal [1]; it waits a random interval, listens and attempts retransmission [1].
(b) [2] The rehearsal transmitted during the event is real-time [1]. The previously recorded programme selected by a user is on-demand [1].
(c) [2] Media data arrives too slowly and the buffer runs low/empties [1]; the player pauses until more data has arrived [1].
Allow alternative technically correct wording. These are teaching points, not an official Cambridge mark scheme.
13. Review and self-check
| Concept | Remember this |
|---|---|
| Ethernet | Wired LAN standards that communicate using frames. |
| Collision | Overlapping signals can corrupt transmissions on a shared medium. |
| CSMA/CD | Listen, transmit, detect collision, stop/jam, wait randomly, retry. |
| Switched full-duplex | Dedicated connections remove shared-medium collisions; CSMA/CD is unnecessary. |
| Real-time streaming | Media is created and sent during the event. |
| On-demand streaming | Stored media is sent when a user chooses it. |
| Buffer | Temporarily holds received media for continuous playback. |
| Bit rate and broadband speed | The available download rate must keep up with the stream over time. |
Can you answer without looking back?
- Why can a collision occur even when both devices listened first?
- What must a sender do after detecting a collision?
- What makes a full-duplex switched link different from a hub connection?
- How can you tell whether a stream is live or on-demand?
- Why does a buffer help with brief network delays but not a permanently slow connection?
- If a stream requires 4 Mb/s but the connection delivers 2 Mb/s, what will eventually happen?
Exam reminder: Write processes in the correct order, and finish each explanation with the effect on data transmission or playback.