Skip to content
Computer Science · Grade 9 · Data and Digital Representation · Term 2

IP Addressing and DNS

Students will learn about IP addresses, how they are assigned, and the role of the Domain Name System (DNS).

Ontario Curriculum ExpectationsCS.HS.N.6CS.HS.S.5

About This Topic

IP addresses serve as unique identifiers for devices on a network, much like house numbers on a street. In this topic, students explore IPv4 addresses, which use a 32-bit format such as 192.168.1.1, and IPv6, which expands to 128 bits to address the exhaustion of IPv4 supplies. They learn how addresses are assigned dynamically through DHCP servers or statically by administrators, enabling reliable data routing across local and global networks.

The Domain Name System (DNS) acts as a translator, converting user-friendly domain names like example.com into corresponding IP addresses. This process involves hierarchical servers that cache queries for efficiency. Within Ontario's Grade 9 Computer Science curriculum, particularly in the Data and Digital Representation unit, these concepts connect to binary representation and network protocols, fostering skills in analyzing digital systems.

Active learning shines here because networking concepts feel abstract without interaction. When students simulate DNS lookups or role-play IP assignment in pairs, they grasp translation steps and scarcity issues firsthand, making protocols tangible and boosting retention through collaborative problem-solving.

Key Questions

  1. Explain the purpose of IP addresses and how they enable device identification on a network.
  2. Analyze the process by which DNS translates domain names into IP addresses.
  3. Differentiate between IPv4 and IPv6 and justify the need for the latter.

Learning Objectives

  • Explain the function of IP addresses in identifying and locating devices on a network.
  • Analyze the hierarchical process by which DNS servers translate domain names into IP addresses.
  • Compare the structure and address space of IPv4 and IPv6, justifying the transition to IPv6.
  • Differentiate between dynamic and static IP address assignment methods.
  • Demonstrate the path of a data packet from a source device to a destination device using IP addresses and DNS resolution.

Before You Start

Introduction to Networks

Why: Students need a basic understanding of what a network is and how devices communicate to grasp the concept of IP addresses and DNS.

Binary and Hexadecimal Number Systems

Why: Understanding binary is foundational for comprehending the structure of IP addresses (especially IPv4) and how they are represented digitally.

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.
DNS (Domain Name System)A hierarchical and decentralized naming system for computers, services, or any resource connected to the Internet or a private network. It translates human-readable domain names into the machine-readable IP addresses required for locating computer services and devices.
IPv4The fourth version of the Internet Protocol, using a 32-bit address scheme that allows for approximately 4.3 billion unique addresses. Many of these addresses have been allocated, leading to scarcity.
IPv6The latest version of the Internet Protocol, using a 128-bit address scheme that provides a vastly larger address space, estimated at 340 undecillion unique addresses, to accommodate the growing number of internet-connected devices.
DHCP (Dynamic Host Configuration Protocol)A network management protocol used to automatically assign IP addresses and other network configuration parameters to devices on a network. This simplifies network administration and prevents IP address conflicts.

Watch Out for These Misconceptions

Common MisconceptionIP addresses never change, like permanent phone numbers.

What to Teach Instead

Most IPs are dynamic, leased temporarily via DHCP to conserve addresses. Role-playing DHCP renewals shows leases expire, helping students see networks as fluid systems rather than static lists.

Common MisconceptionDNS is a simple dictionary lookup anywhere.

What to Teach Instead

DNS follows a distributed, hierarchical query path across global servers. Chain simulations reveal recursion and caching, correcting flat 'phonebook' views through step-by-step group tracing.

Common MisconceptionIPv6 is unnecessary since IPv4 still works fine.

What to Teach Instead

IPv4's 4 billion addresses are depleted; NAT workarounds add complexity. Debates with real-world stats on growth highlight IPv6's scale, building justification skills via evidence comparison.

Active Learning Ideas

See all activities

Real-World Connections

  • Network administrators at Google use DNS to manage the vast infrastructure that serves billions of web searches daily, ensuring users are directed to the correct servers when they type a website address.
  • Internet Service Providers (ISPs) like Rogers or Bell assign IP addresses to homes and businesses, enabling devices to connect to the internet and communicate with servers worldwide.
  • Cybersecurity analysts investigate network traffic, analyzing IP addresses to identify malicious activity or unauthorized access attempts on corporate networks.

Assessment Ideas

Exit Ticket

Provide students with a fictional domain name (e.g., 'mycoolsite.edu'). Ask them to write: 1) What is the purpose of DNS in accessing this site? 2) If the site used IPv4, what is a possible IP address format? 3) Why might IPv6 be necessary for future growth?

Quick Check

Present students with two IP addresses: one valid IPv4 and one valid IPv6. Ask them to identify which is which and explain one key difference in their structure or capacity. Follow up by asking if the address was likely assigned statically or dynamically and why.

Discussion Prompt

Facilitate a class discussion: 'Imagine a new social media platform is launching with millions of users signing up daily. How does the transition from IPv4 to IPv6 impact the platform's ability to grow and connect users globally?' Guide students to discuss address exhaustion and scalability.

Frequently Asked Questions

How do IP addresses enable network communication?
IP addresses uniquely identify sending and receiving devices, allowing routers to forward packets accurately across networks. In IPv4, dotted decimals represent binary values; IPv6 uses hexadecimal for vastly more combinations. Students analyze this by tracing packet paths in diagrams, connecting to data representation standards like CS.HS.N.6.
What is the role of DNS in networking?
DNS resolves domain names to IP addresses through a hierarchical system of servers, starting from root and ending at authoritative nameservers. Caching speeds repeats. Hands-on lookups with tools like nslookup demystify the process, aligning with CS.HS.S.5 on system analysis.
Why differentiate IPv4 from IPv6 in Grade 9?
IPv4 faces address exhaustion, prompting IPv6's expansion for internet growth. Students justify the shift by calculating address spaces and reviewing adoption stats, developing critical analysis for future units on scalable systems.
How can active learning help students understand IP addressing and DNS?
Active strategies like role-plays for DHCP and DNS chains make invisible protocols visible, as students physically pass queries and responses. Simulations reveal hierarchies and dynamics missed in lectures, while grouping fosters discussion of errors like conflicts. This builds deeper comprehension and systems thinking, per curriculum expectations.