AP CSP: Sending Binary Messages with the Internet Simulator

Slides:



Advertisements
Similar presentations
AP CSP: Sending Binary Messages
Advertisements

AP CSP: Pixelation – B&W/Color Images
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
AP CSP: Sending Numbers
Encryption with Keys and Passwords
AP CSP: Making Visualizations & Discovering a Data Story
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
AP CSP: The Need for Addressing
AP CSP: Encoding and Sending Formatted Text
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
Day 5- Sending Numbers Code.org- Unit 1, Lesson 6.
Sending Binary Messages
Vocabulary byte - The technical term for 8 bits of data.
Please take out the homework - viewing sheet fro the movie
Sending Binary Messages
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
Lesson 1-10 AP Computer Science Principles
AP CSP: Number Systems Day 4: 8/30/16.
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
AP CSP: The Need for Programming Languages and Algorithms
AP CSP: Data Assumptions & Good and Bad Data Visualizations
Vocabulary byte - The technical term for 8 bits of data.
UNIT 2 – LESSON 3 Encoding B&W Images.
Lesson 2-3 AP Computer Science Principles
UNIT 2 – CHAPTER 1 – LESSON 1 DIGITAL INFORMATION.
Lesson 2-2 AP Computer Science Principles
Code.org Lessons 11 & 12 Lesson 11- Packets and Making a Reliable Internet Lesson 12- The Need for DNS.
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
UNIT 2 – LESSON 2 TEXT COMPRESSION.
Packets and Making a Reliable Internet
SENDING BINARY MESSAGES
UNIT 1 – LESSON 6 SENDING NUMBERS.
Unit 2, Lessons 1 & 2 Data types.
CS Principles U2L3 Encoding B&W Images.
The Need for Programming Languages
Lesson 1-13 AP Computer Science Principles
The Need for Algorithms 2 days
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
Vocabulary Prototype: A preliminary sketch of an idea or model for something new. It’s the original drawing from which something real might be built or.
AP CSP: Bytes, File Sizes, and Text Compression
Sending Bits on the Internet
AP CSP: Making a reliable Internet & DNS
LEQ: How do I organize a response to a LEQ?
Review Messages over the internet are sent using binary
Packetizing Error Detection
MAT 105 Spring 2008 Chapter 17: Binary Codes.
SENDING BINARY MESSAGES WITH THE INTERNET SIMULATOR
Packetizing Error Detection
Day 5- Sending Numbers Code.org- Unit 1, Lesson 6.
Representing and transmitting information
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Sending Binary Messages
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Packetizing Error Detection
Global Challenge Night Sensor Lesson 2.
Code.org Lessons 11 & 12 Lesson 11- Packets and Making a Reliable Internet Lesson 12- The Need for DNS.
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Day 5- Sending Numbers Code.org- Unit 1, Lesson 6.
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Code.org Lessons 11 & 12 Lesson 11- Packets and Making a Reliable Internet Lesson 12- The Need for DNS.
Learning Target I can identify the purpose and key details in a writing prompt. To be able to interpret a prompt accurately during a timed writing test.
Sending Binary Messages- Internet
Presentation transcript:

AP CSP: Sending Binary Messages with the Internet Simulator August 26-27, 2016

Introduction Last class we built devices that could we could use to communicate with each other. The device was supposed to be able to communicate as many options as possible. The idea was to create a very simple system that can accomplish this goal. Can you send a message in binary to someone you’ve never before communicated with? If yes, how? If no, what does the person receiving a message need to know in order to successfully decode the message? Why did you choose your particular message encoding strategy? List at least two reasons that justify your decision. List two issues or problems that could be improved in your encoding strategy.

Definitions Binary: Bit: A way of representing information using only two options Bit: A contraction of “Binary Digit”. A bit is the single unit of information in a computer, typically represented as a 0 or 1.

Getting Started In order to interpret the message we needed to know we: Knew which signal represented A and which meant B And we knew there was some kind of mapping between sequences of signals and a possible message. What we were beginning to do in our last lesson was developing a communication protocol. Today we are going to develop a more in- depth protocol to solve a different problem. First I want you to decode a message that I will send you using a flashlight. Light on means state A, Light off means state B. Write down the sequence I send you on your paper.

Flashlight Discussion Did the second message make you think about your answer to the first question? Do you want to change your answer to the first question? What assumptions did you make in interpreting these messages? Is this protocol specific enough to allow useful communication of a binary message? If not what information would need to be added to it?

More Vocabulary Protocol: Bit: For our purposes today a “protocol” is simply a set of rules about sending, receiving and interpreting binary messages. Bit: We call each element of a binary message a bit. “Bit” is short for binary digit. So for example if you have a binary message A B B A , we would say this is a 4-bit message.

Internet Simulator Activity: Today we’re going to be using the Internet Simulator on the code.org website to explore some of the challenges of sending bits on the internet. The internet Simulator helps enforce “the binary rule” for sending messages – it will present challenges that they will need to problem solve around. Before I describe the instructions on how to use the simulator, I want you to try and figure out on your own with your partner. Click any and everything to figure it out. Don’t worry you cannot break the simulator. The challenge of today’s activity is to figure out a way to coordinate actions with your partner to make this tool into a functioning two-way bit-sending device.

Internet Simulator Activity: Goals You will practice relaying a 2-bit sequence with their partners. The goal is to exchange 2-bit messages (partner sends a 2-bit message, other partner sends a 2-bit message back) as quickly and accurately as possible. In other words, students are trying to get the fastest bit rate possible. Each initial sender should be able to confirm that the message was received correctly and resent because the message that they have received is the same as the original. As students iterate and perfect their protocol, they should try to extend their protocol to send more bits or send them more quickly, while maintaining accuracy. When each group has a working protocol and has time to practice (~10 minutes), have an all-class showdown to see who can do it the fastest.

Internet Simulator Rules /: Student pairs can decide who sends first. I’ll reveal the sequence of bits to be sent. Partner A of each group may enter this sequence of bits into Internet Simulator but may not begin sending them. I will tell you when to start and then partners will exchange messages. During the challenge students may not communicate with one another. Students say “STOP” once they have completed their exchange. I will verify that each partner received what the other sent by checking outgoing and incoming messages.

Wrap-Up How has today’s activity added to or altered your definition of a bit? A major focus of today’s activity was timing and coordination. What things did you need to coordinate or agree about ahead of time in order for your protocol to work? How fast do you think computers transmit bits?