Skip to content
Computer Science · Grade 12 · Networks and Distributed Systems · Term 3

IP Addressing and Routing

Exploring how IP addresses identify devices and how routers direct traffic across networks.

Ontario Curriculum ExpectationsCS.N.4

About This Topic

IP addressing provides unique identifiers for devices on networks, enabling communication across local and global scales. IPv4 uses 32-bit addresses in dotted decimal notation, such as 192.168.1.1, but its limited supply of about 4 billion addresses prompted the development of IPv6, which offers 128-bit addresses for vastly more unique identifiers. Routers examine packet headers, consult routing tables built from protocols like OSPF, and forward data along optimal paths based on metrics like hop count or bandwidth.

This topic aligns with Ontario's Grade 12 Computer Science curriculum in Networks and Distributed Systems, where students explain IPv4 versus IPv6 differences, trace router path decisions, and design configurations with subnet masks. Subnetting divides networks into smaller segments for efficiency and security, fostering skills in binary math, logical planning, and troubleshooting real-world connectivity issues.

Active learning shines here because concepts like packet routing feel abstract until students simulate them. Tools like Cisco Packet Tracer let classes build virtual networks, trace packets live, and debug failures collaboratively. These experiences turn theory into practice, boost retention through trial and error, and prepare students for certifications like CCNA.

Key Questions

  1. Explain the difference between IPv4 and IPv6 addressing.
  2. How do routers determine the optimal path for data packets?
  3. Design a simple network configuration using IP addresses and subnet masks.

Learning Objectives

  • Compare the structure and address space of IPv4 and IPv6 protocols.
  • Analyze the decision-making process of a router in selecting an optimal path for data packets using routing tables.
  • Design a basic network topology, assigning appropriate IP addresses and subnet masks to devices for efficient communication.
  • Evaluate the impact of subnetting on network performance and security in a given scenario.

Before You Start

Basic Network Concepts

Why: Students need a foundational understanding of what a network is and how devices communicate before learning about specific addressing and routing mechanisms.

Binary Number System

Why: Understanding binary is essential for comprehending how IP addresses and subnet masks are structured and manipulated.

Key Vocabulary

IP AddressA unique numerical label assigned to each device connected to a computer network that uses the Internet Protocol for communication.
IPv4The fourth version of the Internet Protocol, using a 32-bit address format that supports approximately 4.3 billion unique addresses.
IPv6The latest version of the Internet Protocol, using a 128-bit address format to provide a vastly larger pool of unique addresses.
RouterA networking device that forwards data packets between computer networks, operating at the network layer of the OSI model.
Subnet MaskA number that defines the range of IP addresses available within a network or subnet, separating the network portion from the host portion.

Watch Out for These Misconceptions

Common MisconceptionIP addresses never change and are permanent like MAC addresses.

What to Teach Instead

IP addresses are often dynamic via DHCP, assigned temporarily by servers. Hands-on DHCP simulations in Packet Tracer show leases expiring and renewing, helping students distinguish layers and see why routing relies on logical, changeable IPs.

Common MisconceptionRouters simply connect devices on the same WiFi network.

What to Teach Instead

Routers forward packets between different networks using IP headers and tables. Packet-tracing activities reveal inter-network hops, clarifying that switches handle local traffic while routers manage paths across subnets.

Common MisconceptionIPv6 completely replaces IPv4 with no overlap.

What to Teach Instead

Both coexist via dual-stack and tunneling; IPv6 adoption grows slowly. Mapping exercises comparing address formats build familiarity, and dual-config labs show seamless transitions students can replicate.

Active Learning Ideas

See all activities

Real-World Connections

  • Internet Service Providers (ISPs) like Bell Canada and Rogers use sophisticated routing protocols to direct billions of data packets daily, ensuring reliable internet access for millions of households and businesses.
  • Network engineers in large corporations manage complex IP addressing schemes and subnetting to segment their internal networks, improving security, performance, and manageability for thousands of employee devices.
  • The transition from IPv4 to IPv6 is ongoing globally, driven by the exhaustion of IPv4 addresses, and is critical for the continued growth of the Internet of Things (IoT) and new online services.

Assessment Ideas

Quick Check

Present students with a diagram showing two routers connected by multiple links, each with a different cost (e.g., bandwidth, hop count). Ask them to identify the path a packet would take and justify their choice based on routing metrics.

Exit Ticket

Provide students with a small network scenario (e.g., 5 devices). Ask them to assign IP addresses and subnet masks, then write one sentence explaining why they chose those specific values for efficient communication.

Discussion Prompt

Facilitate a class discussion: 'Imagine a company is experiencing slow network speeds. How might an issue with IP addressing or routing contribute to this problem? What steps could a network administrator take to diagnose it?'

Frequently Asked Questions

What is the difference between IPv4 and IPv6 addressing?
IPv4 uses 32-bit addresses (about 4.3 billion unique), written as four decimals like 192.168.0.1, facing exhaustion. IPv6 employs 128-bit hexadecimal addresses like 2001:db8::1, supporting trillions of devices with built-in security and auto-configuration. Curriculum labs highlight migration challenges and benefits for Canada's growing IoT networks.
How do routers find the best path for data packets?
Routers use protocols like OSPF or BGP to build tables listing network paths with costs. For each packet, they match the destination IP to the table and forward to the next hop. Student simulations reveal dynamic updates when links fail, teaching convergence and redundancy concepts key to reliable systems.
How can active learning improve understanding of IP addressing and routing?
Active approaches like Packet Tracer labs let students build, configure, and break networks firsthand. Tracing live packets demystifies routing tables, while group subnet designs reinforce binary skills through peer feedback. These methods increase engagement, cut misconceptions by 30% in studies, and mirror industry troubleshooting for better retention.
How do subnet masks work in network design?
Subnet masks divide IP addresses into network and host portions via binary AND operations, e.g., 255.255.255.0 allows 254 hosts. Students practice by allocating subnets for departments, ensuring no overlap. This builds efficiency, security via isolation, and scalability skills for enterprise networks.