How data moves through the Internet (College Board AP® Computer Science Principles): Study Guide

Robert Hampton

Written by: Robert Hampton

Reviewed by: James Woodhouse

Updated on

Packet transmission

How is information sent through the Internet?

  • Information is passed through the Internet as a data stream

  • Data streams contain chunks of data, which are encapsulated in packets

  • Each packet contains a chunk of data plus metadata used for routing the packet between the origin and destination, and for data reassembly

  • The metadata includes information such as the source address, the destination address, and the order of the packet within the original data stream

How do packets travel across the Internet?

  • When a file or message is sent, it is broken into multiple packets that may each take a different path through the network

  • Packets may arrive at the destination in order, out of order, or not at all

  • At the destination, the packets are reassembled into the original data using the metadata included in each packet

  • If packets arrive out of order, the metadata allows them to be rearranged correctly

What protocols are used for packet transmission?

  • IP, TCP, and UDP are common protocols used on the Internet

  • These protocols define the rules for how packets are formatted, addressed, transmitted, and received

Examiner Tips and Tricks

  • The most commonly tested CED point on this topic is that packets may arrive in order, out of order, or not at all. Memorize this exact phrasing — questions often hinge on recognizing that "not at all" is a valid outcome.

  • Questions about packet transmission focus on the process (chunks of data → packets with metadata → multiple paths → reassembly at destination), not on the technical behavior of specific protocols. You don't need to memorize what TCP, UDP, or IP do individually.

  • For the AP Create Performance Task, when discussing how your program sends or receives data over the Internet in your written response, focus on the packet-based model — that data is broken into packets, sent through the network, and reassembled at the destination.

Worked Example

A user sends a large file from one computer to another over the Internet. Which of the following best describes how the file is transmitted?

(A) The file is sent as a single block of data along one fixed path

(B) The file is broken into packets that may take different paths and arrive in any order, then reassembled at the destination using metadata

(C) The file is encrypted and decrypted at every router along the path

(D) The file is duplicated and sent along every possible path simultaneously

[1]

Answer:

(B) The file is broken into packets that may take different paths and arrive in any order, then reassembled at the destination using metadata [1 mark]

  • When a file is sent over the Internet, it is broken into packets, each containing a chunk of data plus metadata used for routing and reassembly. Packets may arrive in order, out of order, or not at all — the metadata allows them to be reassembled correctly at the destination.

Unlock more, it's free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Robert Hampton

Author: Robert Hampton

Expertise: Computer Science Content Creator

Rob has over 16 years' experience teaching Computer Science and ICT at KS3 & GCSE levels. Rob has demonstrated strong leadership as Head of Department since 2012 and previously supported teacher development as a Specialist Leader of Education, empowering departments to excel in Computer Science. Beyond his tech expertise, Robert embraces the virtual world as an avid gamer, conquering digital battlefields when he's not coding.

James Woodhouse

Reviewer: James Woodhouse

Expertise: Computer Science & English Subject Lead

James graduated from the University of Sunderland with a degree in ICT and Computing education. He has over 14 years of experience both teaching and leading in Computer Science, specialising in teaching GCSE and A-level. James has held various leadership roles, including Head of Computer Science and coordinator positions for Key Stage 3 and Key Stage 4. James has a keen interest in networking security and technologies aimed at preventing security breaches.