π Internet Simulator
Unit 2 β The internet | October 28Do Now (In Classroom)
Open the code.org
invitation and join our group.
Signals & Protocols
Yesterday you made a device a set of rules. What you were developing is called a protocol.
Protocol - A set of rules governing the exchange or transmission of data between devices.
Bit - a single
binary digit
Weβre going to use the Internet Simulator to send 2-bit messages.
Login and see what you can figure out. Click all the buttons, try typing, see what happens.
Internet Simulator
- SHARED wire between the two people.
- The wire can hold only a single state -
A
orB
- and it can be set by either person at any time. - At any time either person can read the wire to see which state itβs in
Neither partner is βsendingβ or receiving anything. You can always set or see the state of the wire.
Challenge: figure out a protocol to send messages back and forth. Your goal should be to develop a protocl that sends messages as quickly as possible. This is whatβs called a bitrate.
Bitrate - the number of bits that are conveyed or processed per unit of time. e.g. 8 bits/sec.
Assessment
A binary message consisting of four bits was sent to you by a friend. The message was supposed to be ABAB
. Unfortunately, your friend set the bit on the wire once every 2 seconds, but you read the wire once every second.
Assuming that the first bit was sent and read at the same time, what message did you receive instead?