Skip to content
Computer Science · 11th Grade · Networking and Cyber Defense · Weeks 10-18

IP Addressing and Routing

Exploring how devices are identified on a network and how data finds its destination.

Common Core State StandardsCSTA: 3B-NI-03

About This Topic

IP addressing and routing are the mechanisms that give every device on a network a unique, locatable identity and direct data to its correct destination. CSTA standard 3B-NI-03 asks students to analyze how data moves across networks, and IP addressing is the foundation of that analysis. In 11th grade, students build on their understanding of network layers to see how the Network layer specifically handles the end-to-end problem of getting a packet from any source to any destination across a global network of networks.

In the US K-12 context, this topic is relevant to students who already interact with IP addresses when they configure home routers or troubleshoot connectivity. Building on that prior experience by explaining the logic behind subnet masks, CIDR notation, and routing tables transforms a familiar but opaque topic into a comprehensible system. The ongoing transition from IPv4 to IPv6 is an active US and global infrastructure project that gives the topic genuine current relevance.

Active learning benefits this topic because addressing and routing involve both conceptual understanding and procedural skill, such as calculating subnet ranges. Hands-on subnet design tasks and routing simulation activities develop both, and peer explanation during design reviews solidifies understanding in ways that independent practice alone cannot achieve.

Key Questions

  1. Explain the function of IP addresses and subnet masks in network communication.
  2. Analyze the process of routing data packets across different networks.
  3. Differentiate between IPv4 and IPv6 and their respective advantages.

Learning Objectives

  • Calculate the network and broadcast addresses for a given IP address and subnet mask.
  • Design a network addressing scheme for a small organization using CIDR notation.
  • Compare and contrast the structure and advantages of IPv4 and IPv6 addressing.
  • Analyze the steps a router takes to forward a packet from a source to a destination across multiple networks.
  • Explain the role of routing tables in directing network traffic.

Before You Start

Network Layers (OSI or TCP/IP Model)

Why: Students need to understand the role of the Network Layer and the concept of encapsulation to grasp how IP addresses and routing function within the broader network communication process.

Binary Number System

Why: Calculating IP addresses and subnet masks involves binary arithmetic, so a foundational understanding of binary is essential.

Key Vocabulary

IP AddressA unique numerical label assigned to each device connected to a computer network that uses the Internet Protocol for communication. It serves as both a host or network interface identifier and a location address.
Subnet MaskA number that defines the range of IP addresses available within a network. It separates the network portion of an IP address from the host portion.
CIDR NotationClassless Inter Domain Routing notation, a compact way to represent an IP address and its associated routing prefix. It uses a slash followed by the number of bits in the network portion.
Routing TableA data table stored in a router or networked computer that lists the routes to particular network destinations. It specifies the next hop or interface to send packets to.
PacketA small segment of data transmitted over a network. Each packet contains header information, including source and destination IP addresses, to guide its journey.

Watch Out for These Misconceptions

Common MisconceptionA device's IP address is permanent, like its MAC address.

What to Teach Instead

IP addresses are typically assigned dynamically by DHCP and can change every time a device connects to a network. MAC addresses are burned into hardware and are permanent within a network segment. The distinction matters for both troubleshooting and security analysis. Hands-on DHCP observation or examining lease tables makes this difference concrete.

Common MisconceptionRouting is just looking up a destination in a fixed table.

What to Teach Instead

While basic routing does use lookup tables, routing protocols dynamically build and update those tables based on network topology changes, link failures, and traffic conditions. A static table that never updates would fail whenever any network path changed. Routing simulation activities show how dynamic protocols discover and adapt to network changes.

Common MisconceptionThe internet is one big flat network.

What to Teach Instead

The internet is a hierarchical network of thousands of autonomous systems, each managing its own internal routing. BGP (Border Gateway Protocol) handles routing between these autonomous systems. Visualizing the internet as nested address spaces rather than a flat topology is key to understanding how global routing actually works.

Active Learning Ideas

See all activities

Real-World Connections

  • Network engineers at companies like Google and Amazon use IP addressing and routing principles daily to manage vast data center networks, ensuring billions of users can access services reliably.
  • Internet Service Providers (ISPs) such as Comcast and Verizon configure routers with complex routing tables to direct internet traffic efficiently between their networks and the rest of the global internet.
  • Cybersecurity analysts investigate network traffic anomalies by examining IP addresses and packet routes to detect and mitigate potential threats like denial-of-service attacks.

Assessment Ideas

Quick Check

Provide students with a list of IP addresses and subnet masks. Ask them to calculate and write down the network address and broadcast address for each. Review answers as a class, addressing common errors.

Discussion Prompt

Pose the question: 'Imagine you are designing the IP addressing scheme for a new school with 5 departments, each needing about 50 IP addresses. How would you use CIDR notation to allocate addresses efficiently? What challenges might arise?' Facilitate a class discussion on their proposed solutions.

Exit Ticket

On a slip of paper, have students write one key difference between IPv4 and IPv6. Then, ask them to describe in one sentence how a router uses a routing table to send a data packet to a computer on a different network.

Frequently Asked Questions

What is the purpose of a subnet mask?
A subnet mask tells a device which part of an IP address identifies the network and which part identifies the specific host. It allows one IP address range to be divided into smaller subnetworks, improving address efficiency and enabling organizations to segment internal traffic for security and performance reasons.
Why is the internet running out of IPv4 addresses?
IPv4 uses 32-bit addresses, providing approximately 4.3 billion unique addresses. With the explosion of internet-connected devices worldwide, that pool is effectively exhausted. IPv6 uses 128-bit addresses, providing a practically unlimited supply, but the transition has been slow because IPv4 infrastructure is deeply embedded in existing hardware and software.
What is the difference between a public and private IP address?
Public IP addresses are globally routable and unique across the internet. Private IP addresses (like 192.168.x.x) are used within local networks and are not routable on the public internet. Network Address Translation (NAT) maps private addresses to a public address when a device communicates externally, which is how most home and school networks operate.
How does active learning help students understand IP addressing and routing?
IP addressing combines conceptual knowledge with procedural skills like subnet calculation, meaning students need both understanding and practice. Simulation and design activities make abstract addressing schemes concrete, while peer review of subnet designs catches calculation errors and builds both accuracy and conceptual understanding simultaneously.