CSP Unit 2 - The Internet
CSP Unit 2 - The Internet
Table of Contents
Prompt:
Objectives
Identify questions that you have about how the Internet works
Partner #1 -
(Dani)
Partner #2 -
(Hannah)
Unit 2 Lesson 1 - Activity
Do This:
Explore the Internet
Simulator. How does
it work? What can I
do with it?
Unit 2 Lesson 1 - Activity
Teacher
Demo
Unit 2 Lesson 1 - Activity
Prompt:
How is it different?
Unit 2 Lesson 1 - Activity
Prompt:
Computer Network
Name:
We are going to build a computer network that will let us communicate with
multiple people. We will be using lines to represent our connections - if two
people are connected with a line, then they are allowed to speak to each other.
Only two people can be connected by a single line, but you can be connected to
multiple people at the same time via multiple lines
B C
F
D E
Guideline #1:
Lines cost money, so try to use the least number of lines possible
Challenge #2:
Create a network that uses the least number of lines
Insert as many lines as needed
B C
F
D E
Guideline #1:
Lines cost money, so try to use the least number of lines possible
Guideline #2:
Lines can be cut, which might disconnect people from the
network
Challenge #3:
Create a network that keeps everyone connected even if one of the lines is cut
Insert as many lines as needed
B C
F
D E
Guideline #1:
Lines cost money, so try to use the least number of lines possible
Guideline #2:
Lines can be cut, which might disconnect people from the
network
Guideline #3:
Direct Connections are faster than long paths with indirect
connections
Challenge #4:
Create a network that you feel balances all 3 guidelines
Insert as many lines as needed
B C
F
Guideline #1: D E
Lines cost money, so try to use the least number of lines possible
Guideline #2:
Lines can be cut, which might disconnect people from the network
Guideline #3:
Direct Connections are faster than long paths with indirect connections
Prompt:
Thinking about our 3 guidelines, what is a strength of the network you created?
● Answer:
Bandwidth: the maximum amount of data that can be sent in a fixed amount
of time, usually measured in bits per second.
Unit 2 Lesson 2 - Wrap Up
Prompt:
Objectives
Students will be able to:
• Explain the need for open and shared protocols for communicating on the
Internet
• Describe the way the Internet Protocol helps uniquely identify one another
on the Internet
Unit 2 Lesson 3 - Warm Up
Prompt:
Prompt: Let’s say this group chat was used to plan and complete a
group project. What would be tricky about the communication?
What rules would you propose to overcome some of these
challenges?
Communication Challenges
●
●
●
Internet Simulator
Do This:
● Go to Lesson 3 - Level 2
● Join a room with your group
mates.
● Agree on a communication
protocol that identify the
sender and the reciever
without using you names
● No talking!
Unit 1 Lesson 1 - Set Up
Videos
Do This:
● Watch the videos in the lesson guide
Unit 2 Lesson 3 - Wrap Up
What is IP?
A number that identifies each sender or receiver of information on the internet
TWO formats of IP:
● IPV4 --- 32 BITS
● IPV6 --- 128 BITS (accommodates many more devices)
Who controls the internet?
amazing thing is that no single person, government, or corporation is in charge.
All devices and computers on the Internet use IP to connect and communicate
with each other.
All devices format the sender and receiver information the same way so that
devices on different networks can still communicate.
These shared rules are called protocols. The Internet as we know it is actually
these sets of protocols that are used to communiate over networks.
Unit 2 Lesson 3 - Homework
Homework
Unit 2 - Lesson 3
Routing & Redundancy
Unit 2 Lesson 3 – Objectives
Objectives
Prompt:
Send each person a message asking who they are and choose one of the
following questions:
Be sure to also respond to questions you get from people on other routers!
Unit 2 Lesson 4 - Activity
Prompt:
Do This:
1) Pick someone on a different router and send three separate
messages with your top three favorite movies or TV shows.
2) After you send the messages, open the router logs and find these
same messages in the logs. Notice how these messages traveled
through the network. Did they always take the same path from
your router to the other router?
3) Look at other messages that are being sent. Are there any patterns
in the paths that they take?
Unit 2 Lesson 4 - Activity
Prompt:
Thinking about these terms (router, redundancy,
and fault tolerant), how can we describe what
we’ve observed in the router logs at the end of this
activity?
What are some practical reasons that you think
messages might take different paths from one
router to the other?
Unit 2 - Lesson 5
Packets
Unit 2 Lesson 5 - Objectives
Objectives
Prompt:
Suppose our school library is moving to a new building on
campus and the librarian has asked for your help.
1. What approach would you take if you just needed to clear out
the space by the end of the day?
2. How would your approach change if you had more time and
wanted to check that every book made it safely and was on the
same shelf it was on before the move?
Unit 2 Lesson 5 - Warm Up
Case 1: You would just load them into boxes and carry them
over. You might even be ok if some were lost or the order got
messed up. What matters is speed.
In both cases you wouldn't move the entire library at once, you
would move boxes or chunks of books at a time.
Unit 2 Lesson 5 - Warm Up
Today we’ll learn about two new protocols, one for when
speed is most important, and one when accuracy is most
important.
Unit 2 Lesson 5 - Warm Up
Two protocols used to send data as packets are UDP and TCP.
Do This:
● Navigate to Level 2
Unit 2 Lesson 5 - Activity
What changed?
● A single message can be made up of
many “packets” which you can add
with the “Add Packet” button
● Packets can only be 80 bits long
○ 16 bits are already used for
packet metadata, data added to
help route the messages
○ You only have 64 bits, or 8 ASCII
characters free for each of your
messages
Unit 2 Lesson 5 - Activity
Packets
You should have:
Activity Guide
Unit 2 Lesson 5 - Activity
Step 3: Read the traffic and answer the questions in your activity
guide.
Unit 2 Lesson 5 - Activity
There’s two protocols commonly used to send packets online, and depending on the
situation websites will choose the one that makes sense.
User Datagram Protocol (UDP)
There’s two protocols commonly used to send packets online, and depending on the
situation websites will choose the one that makes sense.
User Datagram Protocol (UDP) Transmission Control Protocol (TCP)
Main Idea Like Protocol 1 or clearing out the library Like Protocol 2 or numbering every book
as fast as you can. The goal is to send in the library. It’s slower but more
information quickly without worrying accurate.
about accuray.
Basics of how it Number packets so they can be re-ordered,
works Send all the packets but don’t check if
confirm all were received, resend any
they all get through or arrive in the
missing packets. Multiple back and forth
right order.
confirmations between sender and receiver.
X X
Unit 2 - Lesson 6
HTTP and DNS
Unit 2 Lesson 6 - Objectives
Objectives
Main takeaways:
1) Devices are joining and leaving the Internet all the time. IP addresses don't
stay constant. If you go to a coffee shop or restart your browser your device
might be assigned a new IP address.
2) If IP addresses are switching, it's very hard for each computer to keep an
accurate list
3) It would make more sense if there were one system that kept track of all that
information.
Prompt: As we watch the following video take notes in your
notebook on:
AP CSP
Journal
This time we won’t cheat and ask out loud for one another’s IP
addresses!
Do This:
Go to Level 2
on Code Studio
Do This:
HTTP is the language used to communicate between a web browser and a server.
HTTP used for sending and receiving web pages, images, video, audio, and files from the servers
containing them.
Unit 2 Lesson 6 - Wrap Up
Key Takeaways:
Scalability: the capacity for the The Domain Name System (DNS): the
system to change in size and scale to system responsible for translating
meet new demands domain names like example.com into IP
addresses
● The World Wide Web is different from the Internet. The World Wide Web are files, web pages and media. The Internet
is the network we use to access those files.
Prompt:
The internet is actually made of many protocls that all
work together to move inforamtion over the various
networks. These protocls build upon each other like
layers. Each higher layers rely on the one below them?
Application layer
Transport layer
Internet layer
Physical layer
Unit 2 Lesson 6 - Wrap Up
Prompt:
The internet is actually made Using your Layers of
the Internet activity guide to help you, explain how
each of the different layers is involved when you go
to a link like code.org?
code.org
Unit 2 Lesson 6 - Wrap Up
Review
What is the Questions about
Internet? how it works
Unit 2 Lesson 7 - Activity
Chief
Techno
log
Adviso y
r
Unit 2 Lesson 7 - Activity
Project Guide:
Unit 2 Lesson 7 - Activity
Options:
Net Neutrality Internet Censorship The Digital Divide
Unit 2 Lesson 7 - Activity
Step 1: Choose!
Net Neutrality Internet Censorship The Digital Divide
Unit 2 Lesson 7 - Activity
Share Out
Net Neutrality
Unit 2 Lesson 7 - Activity
Share Out
Internet Censorship
Unit 2 Lesson 7 - Activity
Share Out
Submit
Unit Assessment