logo

Cambridge IGCSE Computer Science revision notes

Types and methods of data transmission Revision Notes

Cambridge IGCSE revision notes for Types and methods of data transmission.

At a glance

revision notes

Resource type

Topic

Types and methods of data transmission

CambridgeIGCSEComputer ScienceData transmission

Complete revision guide 1 of 3

Data Packets and Packet Switching in Network Transmission

This note explains how data is divided into packets for transmission over networks, detailing the components of a packet and the packet switching process. It covers the roles of headers, payloads, and trailers, the routing of packets via routers, and how packets are reordered upon arrival to reconstruct the original data.

Syllabus source

Section 3, Topic 2.1, page 14, objective 2.1.1

Open source document ↗

What you should be able to do

  • ✓Understand why data is divided into packets for transmission.
  • ✓Identify and describe the components of a data packet: header, payload, and trailer.
  • ✓Explain the function of each component within a packet.
  • ✓Describe how packet switching works, including routing and reordering of packets.
  • ✓Recognise the role of routers in managing packet transmission and routing.
1

Why Data is Divided into Packets

When data is sent over a network, it is not transmitted as one large continuous stream. Instead, it is broken down into smaller units called packets. This segmentation allows for more efficient and reliable transmission. Smaller packets reduce the chance of errors affecting large amounts of data and enable multiple communications to share the same network simultaneously.

For example, when sending a large file, the file is split into many packets that travel independently through the network. This approach also allows the network to route packets around busy or faulty parts, improving overall performance and resilience.

  • Packets improve transmission efficiency and reliability.
  • Smaller units reduce the impact of errors.
  • Multiple communications can share the network simultaneously.
2

Components of a Data Packet

Each packet consists of three main parts: the header, the payload, and the trailer. Each part has a specific role in ensuring the packet reaches its destination correctly and can be reassembled into the original data.

The header contains control information needed for routing and reassembly. It includes the destination address (where the packet is going), the originator's address (where it came from), and the packet number (which helps to order packets correctly).

The payload is the actual data being sent, such as part of a file, a message, or a web page content. It is the main content the sender wants to transmit to the receiver. The size of the payload can vary depending on the network protocol and the maximum transmission unit (MTU). The trailer often contains error-checking information, such as a checksum or cyclic redundancy check (CRC), which helps detect if the packet has been corrupted during transmission.

  • Header: destination address, originator's address, packet number.
  • Payload: the actual data being transmitted.
  • Trailer: error-checking information to detect transmission errors.
3

Packet Switching Process

Packet switching is the method by which packets are sent independently through the network. Each packet can take a different route to reach the destination, depending on network traffic and availability. Routers are devices that direct packets along the best available path at each step.

Because packets may arrive out of order, the receiving device uses the packet numbers in the headers to reorder them correctly before reconstructing the original data. If any packets are missing or corrupted, the receiver can request retransmission.

For example, if you send an email, the message is split into packets that travel through various routers. Some packets may take a direct route, while others take longer paths. Once all packets arrive, they are reordered and combined to display the complete email.

  • Packets travel independently and may take different routes.
  • Routers direct packets based on destination addresses.
  • Packets can arrive out of order and must be reordered.
  • Error detection allows for retransmission requests if needed.
4

Role of Routers in Packet Transmission

Routers are specialised network devices that manage the flow of packets between different networks. They read the destination address in each packet's header and decide the best next hop for the packet to reach its destination efficiently.

Routers maintain routing tables that help them choose paths that avoid congestion or failures. This dynamic routing ensures packets find the quickest or most reliable route. Without routers, packets would not be able to navigate complex networks such as the internet.

For example, when streaming a video, routers help packets find the fastest path from the video server to your device, even if some network links are busy or down.

  • Routers read destination addresses to forward packets.
  • They use routing tables to select optimal paths.
  • Routers enable dynamic routing around network issues.
  • They are essential for managing complex network traffic.
5

Reordering and Reassembly of Packets

Since packets can arrive at the destination in any order, the receiving device must reorder them using the packet numbers found in the headers. This process ensures the original message or file is reconstructed accurately.

If some packets are delayed or lost, the receiver can detect this by missing packet numbers and request retransmission. Once all packets are received and verified, the payloads are combined in the correct sequence to restore the complete data.

For example, when downloading a file, the computer waits until all packets arrive and are correctly ordered before saving the file, ensuring no corruption or missing parts.

  • Packets may arrive out of order due to different routes.
  • Packet numbers in headers allow correct reordering.
  • Missing or corrupted packets trigger retransmission requests.
  • Payloads are combined to reconstruct the original data.

At-a-glance summary

Comparison table

StepDetailExampleExam Use
Data segmentationBreaking data into smaller packetsSplitting a 10MB file into 1000 packetsExplain why data is divided into packets
Packet componentsHeader, payload, trailerHeader has destination address; payload is file data; trailer has error checkDescribe each packet component
RoutingPackets take different paths via routersSome packets go through Router A, others through Router BExplain how routers manage packet paths
ReorderingPackets arrive out of order and are reorderedPacket 5 arrives before Packet 3; reordered at destinationExplain why packets must be reordered
Error checkingTrailer detects errors; retransmission if neededChecksum fails; packet resentDescribe the role of error checking in packets

Active recall

Quick check

1. What three main parts make up a data packet?

A data packet consists of a header, a payload, and a trailer.

2. What information is found in the header of a packet?

The header contains the destination address, the originator's address, and the packet number.

3. Why might packets arrive out of order at the destination?

Because packets can take different routes through the network, they may arrive in a different order than they were sent.

4. How does the receiver know the correct order of packets?

The receiver uses the packet numbers in the headers to reorder the packets correctly.

5. What role do routers play in packet switching?

Routers read the destination address in each packet and forward it along the best path through the network.

Complete revision guide 2 of 3

Data Transmission Methods: Types, Characteristics, and Suitability

This note explains the main methods of data transmission between devices—serial, parallel, simplex, half-duplex, and full-duplex—detailing how each works, their advantages and disadvantages, and evaluating their appropriateness in different scenarios.

Syllabus source

Section 3, Topic 2.1, page 14, objective 2.1.2

Open source document ↗

What you should be able to do

  • ✓Understand the mechanisms of serial and parallel data transmission.
  • ✓Distinguish between simplex, half-duplex, and full-duplex communication modes.
  • ✓Evaluate the advantages and disadvantages of each transmission method.
  • ✓Apply knowledge to select suitable transmission methods for specific practical situations.
1

Introduction to Data Transmission Methods

Data transmission is the process of sending digital information between devices. The choice of transmission method affects speed, complexity, cost, and reliability. Understanding the differences between methods helps in designing efficient communication systems.

Data can be transmitted in different ways depending on how bits are sent (serial or parallel) and how communication flows (simplex, half-duplex, full-duplex).

  • Transmission methods impact data transfer rate and hardware requirements.
  • Choosing the right method depends on the application’s needs for speed, directionality, and cost.
2

Serial and Parallel Transmission

Serial transmission sends data bits one after another over a single channel or wire. This method requires fewer wires and is simpler to implement, making it suitable for long-distance communication where signal degradation is a concern.

Parallel transmission sends multiple bits simultaneously over multiple channels or wires. For example, an 8-bit parallel transmission sends 8 bits at the same time, increasing data transfer speed.

However, parallel transmission is more expensive and complex due to the need for multiple wires and synchronization between channels. It is typically used for short distances, such as inside a computer between components.

  • Serial: one bit at a time, fewer wires, slower but reliable over long distances.
  • Parallel: multiple bits simultaneously, faster but requires more wires and synchronization.
  • Example: USB uses serial transmission; old computer buses like the printer port used parallel transmission.
3

Simplex, Half-Duplex, and Full-Duplex Communication

These terms describe the directionality and timing of data flow between devices.

Simplex communication allows data to flow in only one direction. An example is a keyboard sending data to a computer; the keyboard does not receive data back.

Half-duplex allows data to flow in both directions but not at the same time. Walkie-talkies are a practical example: one person speaks while the other listens, then they switch roles, but both cannot talk simultaneously on the same channel without interference. This method requires devices to switch between sending and receiving modes, which can introduce delays but reduces hardware complexity compared to full-duplex systems.

  • Simplex: one-way only, simple and cheap, e.g., keyboard to PC.
  • Half-duplex: two-way but alternate, e.g., walkie-talkies.
  • Full-duplex: two-way simultaneously, e.g., telephone calls.
4

Full-Duplex Communication and Its Advantages

Full-duplex communication allows data to flow simultaneously in both directions. This method doubles the effective communication capacity compared to half-duplex.

Full-duplex requires separate channels or frequencies for sending and receiving, or sophisticated timing to avoid collisions. This increases hardware complexity and cost but is essential for applications requiring real-time two-way communication, such as telephone networks and modern Ethernet connections.

Example: In a telephone call, both parties can speak and listen at the same time without interruption.

  • Full-duplex: simultaneous two-way communication.
  • Requires more complex hardware or separate channels.
  • Ideal for real-time interactive communication.
5

Evaluating Transmission Methods for Specific Situations

Choosing the appropriate transmission method depends on factors such as distance, speed requirements, cost constraints, and the nature of communication.

For long-distance communication where wiring cost and signal integrity matter, serial transmission is preferred despite lower speed.

For short distances requiring high speed, such as inside a computer, parallel transmission is suitable but limited by signal timing issues over longer cables due to skew (timing differences between wires). Simplex is used when only one-way communication is needed, reducing complexity and cost, such as in sensors sending data to a controller without feedback needed. Half-duplex suits situations where two-way communication is needed but simultaneous transmission is not critical, saving cost compared to full-duplex. Full-duplex is essential for applications requiring continuous two-way communication, despite higher cost and complexity.

  • Serial for long-distance, cost-effective communication.
  • Parallel for short-distance, high-speed data transfer.
  • Simplex for one-way data flow.
  • Half-duplex for two-way alternate communication.
  • Full-duplex for simultaneous two-way communication.

At-a-glance summary

Comparison table

MethodData FlowWiring ComplexityTypical Use Case
SerialOne bit at a timeLow (single wire or channel)Long-distance communication, USB devices
ParallelMultiple bits simultaneouslyHigh (multiple wires)Short-distance, internal computer buses
SimplexOne-way onlyLowKeyboard to computer, TV broadcast
Half-DuplexTwo-way, alternateMediumWalkie-talkies, CB radios
Full-DuplexTwo-way, simultaneousHighTelephone calls, Ethernet networks

Active recall

Quick check

1. What is the main difference between serial and parallel transmission?

Serial sends data one bit at a time over a single channel; parallel sends multiple bits simultaneously over multiple channels.

2. Give an example of a device that uses simplex communication.

A keyboard sending data to a computer uses simplex communication.

3. Why is full-duplex communication more complex than half-duplex?

Because full-duplex allows simultaneous two-way data flow, it requires separate channels or complex hardware to avoid collisions, increasing complexity.

4. In what situation would half-duplex communication be preferred over full-duplex?

When two-way communication is needed but cost or complexity must be reduced, such as in walkie-talkies where only one person talks at a time.

Complete revision guide 3 of 3

Understanding the USB Interface and Its Role in Data Transmission

This note explains the Universal Serial Bus (USB) interface, detailing its function in data transmission, its versions and speeds, and the advantages and disadvantages of using USB technology in computer systems.

Syllabus source

Section 3, Topic 2.1, page 14, objective 2.1.3

Open source document ↗

What you should be able to do

  • ✓Explain what the USB interface is and how it connects devices.
  • ✓Describe the different USB versions and their data transfer speeds.
  • ✓Understand the advantages of USB technology in data transmission.
  • ✓Identify the disadvantages and limitations of USB interfaces.
1

What is the USB Interface?

The Universal Serial Bus (USB) is a standard interface used to connect peripheral devices to a computer or other host device for data transmission and power supply. It allows multiple devices such as keyboards, mice, printers, external storage drives, and cameras to communicate with a computer through a single type of port and connector.

USB replaces older interfaces like serial and parallel ports by providing a universal, standardised connection method that supports plug-and-play and hot-swapping, meaning devices can be connected or disconnected without restarting the computer.

  • Standard interface for connecting peripherals.
  • Supports both data transfer and power supply.
  • Enables plug-and-play and hot-swapping.
2

USB Versions and Data Transfer Speeds

USB technology has evolved through several versions, each offering different maximum data transfer speeds and capabilities. Understanding these versions helps in selecting the appropriate USB interface for specific devices and data transmission needs.

The main USB versions include: Low-Speed USB (1.5 Mbps), Full-Speed USB (12 Mbps), High-Speed USB (480 Mbps), USB 3.0 or SuperSpeed (5 Gbps), and USB 3.1/3.2 or SuperSpeed+ (up to 10 Gbps or higher). Each version is backward compatible with previous versions but actual transfer speeds depend on both the host and device supporting the same USB standard.

For example, a USB 3.0 external hard drive connected to a USB 2.0 port will operate at USB 2.0 speeds (up to 480 Mbps).

  • Low-Speed USB: 1.5 Mbps, for devices like keyboards.
  • Full-Speed USB: 12 Mbps, common for mice and audio devices.
  • High-Speed USB: 480 Mbps, used for faster devices like flash drives.
  • USB 3.0 and above: 5 Gbps or more, for high-bandwidth devices like external SSDs.
3

Advantages of USB in Data Transmission

USB interfaces offer several benefits that make them widely used in computer systems:

Compatibility: USB ports and connectors are standardised, allowing a wide range of devices to connect without needing special adapters.

Ease of Use: USB supports plug-and-play, so devices are recognised and configured automatically by the operating system without manual driver installation in most cases. Hot-swapping allows devices to be connected or removed while the computer is running without causing damage or data loss (if safely ejected).  - Power Supply: USB cables can supply electrical power to connected devices, eliminating the need for separate power adapters for many peripherals like mice, keyboards, and some external drives. This simplifies setup and reduces cable clutter.

  • Standardised connectors ensure broad compatibility.
  • Plug-and-play and hot-swapping simplify device management.
  • Power delivery through USB reduces need for extra power sources.
4

Disadvantages and Limitations of USB

Despite its advantages, USB technology has some limitations:

Cable Length: USB cables have maximum recommended lengths to maintain signal integrity. For example, USB 2.0 cables should not exceed 5 metres, and USB 3.0 cables typically have a maximum length of about 3 metres. Longer cables may require active repeaters or hubs to maintain performance.

Speed Limitations: Although newer USB versions offer high speeds, actual data transfer rates can be limited by the device, cable quality, or host controller. Older USB versions have significantly lower speeds, which may not be suitable for large data transfers or high-bandwidth devices like HD webcams or external SSDs without USB 3.0 or higher support.  - Shared Bandwidth: USB ports on a computer often share bandwidth through hubs or controllers, so connecting multiple high-speed devices simultaneously can reduce effective transfer speeds for each device.  - Connector Fragility: Frequent plugging and unplugging can wear out USB connectors or ports over time, potentially causing connection issues.

  • Limited cable length affects device placement.
  • Data transfer speed depends on USB version and device capabilities.
  • Multiple devices may share bandwidth, reducing speed.
  • Connectors can wear out with frequent use.

At-a-glance summary

Comparison table

AspectDetailExampleExam Use
USB VersionsDifferent standards with increasing speedsUSB 2.0 (480 Mbps) vs USB 3.0 (5 Gbps)Explain how USB version affects data transfer speed
Power DeliveryUSB supplies power to devicesA USB mouse powered directly from the USB portDescribe how USB can reduce the need for separate power adapters
Cable LengthMaximum cable lengths to maintain signal qualityUSB 2.0 max 5 metres cable lengthState limitations on cable length for reliable data transmission
Plug-and-PlayDevices recognised automatically when connectedConnecting a USB flash drive without manual driver installationExplain the advantage of plug-and-play in USB interfaces

Active recall

Quick check

1. What does USB stand for and what is its primary purpose?

USB stands for Universal Serial Bus, and its primary purpose is to connect peripheral devices to a computer for data transmission and power supply.

2. Name two advantages of using USB interfaces.

Advantages include plug-and-play ease of use and the ability to supply power to connected devices.

3. Why might a USB 3.0 device not achieve its maximum speed when connected to a computer?

Because the computer's USB port might only support an older USB version, limiting the data transfer speed to that version's maximum.

4. What is a limitation related to USB cable length?

USB cables have maximum lengths (e.g., 5 metres for USB 2.0) beyond which signal quality and data transmission reliability decrease.

Related topics

Study nearby topics next

Revision hubs

Keep studying from the right hub