π Something we need to address...
Unit 2 β The internet | November 14π― Learning Targets
AP
I can explain the abstractions in the Internet and how the Internet functions.
AP
I can explain characteristics of the Internet and the systems built on it.
I can develop and explain the need for a protocol with origin, destination, and message content.
I can explain the difference between IPv4 and IPv6 with regard to bits and available addresses.
So far, we have communicated messages between two people. Our βinternetβ looks like this:
But the actual internet looks more like this:
Our βsimpleβ 1:1 protocols will break down. To get a sense of how the inventors of the internet designed a solution, letβs play a game of Battleship.
Battleπ³ Round 1
- The object of Battleship is to try and sink another playerβs ship before they sink yours.
- The other playerβs ship is somewhere on his/her board
- Each turn, you try to guess your opponentβs ship location by calling out a coordinate on the grid, like
A2
. - The other player also tries to hit your ship by calling out coordinates.
You maintain and mark two grids:
- Your Ship Boards - where you record shots fired against you.
- Your Target Boards - where you record the shots you fired against others.
Starting a New Game
- Each player places a ship on their board - one ship for each opponent
- A ship occupies two contiguous squares on the grid - vertically or horizontally. NO Diagonal placement.
- Once the guessing begins, the players may not move the ships.
Battleπ³ Round 10
Now, how could that information be transmitted using bits?
- List all the information that you needed to play Battleship.
- Diagram your protocol.
While developing your protocol here are some questions and suggestions to think about:
- Remember that ultimately you are making a communication protocol for a computer to read, so if itβs hard for a human to decipher, but would be easy to describe for a computer, thatβs fine.
- A message you send over the Internet is just a string of 0s and 1s β so your protocol should indicate how the bits work (i.e. what is the binary representation?)
- Think about using numeric addresses rather than peopleβs names.
- Think about what else you can communicate with binary to reduce the total number of bits.1 How βefficientβ can you make your message? How small can you make the size of a message?
IP Addresses
A number assigned to any item that is connected to the Internet.
Go to: 216.58.217.174
Packets - Small chunks of information that have been carefully formed from larger chunks of information.
Protocol - A set of rules governing the exchange or transmission of data between devices.
IPv4
π How could the internet run out of room?
4,300,000,000 addresses, 5,000,000,000 mobile devicesβ¦
IPv6
π 340,282,366,920,938,463,463,374,607,431,768,211,456 addresses
Three hundred and forty undecillion, two hundred and eighty-two decillion, three hundred and sixty-six nonillion, nine hundred and twenty octillion, nine hundred and thirty-eight septillion, four hundred and sixty-three sextillion, four hundred and sixty-three quintillion, three hundred and seventy-four quadrillion, six hundred and seven trillion, four hundred and thirty-one billion, seven hundred and sixty-eight million, two hundred and eleven thousand, four hundred and fifty-six.
Every single computer connected to the internet has an IP address.
ipconfig getifaddr en0
-
Hexadecimal! ↩