UNIT 2 LESSON 3 CS PRINCIPLES. OBJECTIVES Students will be able to: Construct a binary communication protocol for playing Battleship using the Internet.

Slides:



Advertisements
Similar presentations
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Advertisements

CS 453 Computer Networks Lecture 20 Layer 3Network Layer Network Layer of the Internet.
IP datagrams Service paradigm, IP datagrams, routing, encapsulation, fragmentation and reassembly.
IP: The Internet Protocol
Is ASCII the only way? For computers to do anything (besides sit on a desk and collect dust) they need two things: 1. PROGRAMS 2. DATA A program is a.
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
Domain Name System: DNS
IP ADDRESS(ıNTERNET PROTOCOL) Betül ŞAHİN
WESAM SHULDHUN KHALID AL-ZUGHAIBI IPv4 vs. IPv6.
IP Addressing and Network Software. IP Addressing  A computer somewhere in the world needs to communicate with another computer somewhere else in the.
1 Internet Protocol: Forwarding IP Datagrams Chapter 7.
Lecture#1 on Internet. Internet Addressing IP address: pattern of 32 or 128 bits often represented in dotted decimal notation IP address: pattern of 32.
Connecting The Network Layer to Data Link Layer. ARP in the IP Layer The Address Resolution Protocol (ARP) The Address Resolution Protocol (ARP) Part.
NATs and UDP Victor Norman CS322 Spring NAPT Suppose we have a router doing NAT: half is the “public side”, IP address ; other half is.
Chapter 22 Q and A Victor Norman CS 332 Spring 2014.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Chapter 19 Network Layer Protocols Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
CS 453 Computer Networks Lecture 18 Introduction to Layer 3 Network Layer.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Lesson 5—Networking BASICS1 Networking BASICS Protocols and Network Software Unit 2 Lesson 5.
IP Addressing The in’s and out’s. Lesson Objectives O Know the purpose of an IP address O Understand the structure of an IP address.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
THE BINARY NUMBER SYSTEM “There are only 10 types of people in this world: Those who understand BINARY and those who do not.”
CCNA 1 v3.0 Module 9 TCP/IP Protocol Suite and IP Addressing
IP addresses IPv4 and IPv6. IP addresses (IP=Internet Protocol) Each computer connected to the Internet must have a unique IP address.
Copyright 2007 Jim Martin1 Computer Communications Dr. Jim Martin
UNIT 2 LESSON 5 CS PRINCIPLES. OBJECTIVES Students will be able to: Explain why protocols are necessary to overcome the underlying unreliability of the.
UNIT 2 LESSON 4 CS PRINCIPLES. OBJECTIVES Students will be able to: Describe the redundancy of routing between two points on the Internet. Send messages.
CS470 Computer Networking Protocols
Internet Architecture. 2 INTRODUCTION INTERNET developed by a community of researchers centered around the Defense Advanced Research Projects Agency (DARPA)
UNIT 2 LESSON 9 CS PRINCIPLES. UNIT 2 LESSON 9 OBJECTIVES Students will be able to: Explain the inefficiencies of everyone managing their own name-to-
TCP/IP Protocol Suite and IP Addressing Presented By : Dupien AMS.
Submitted to: Submitted by: Mrs. Kavita Taneja Jasleen kaur (lect.) Hitaishi verma MMICT & BM MCA 4 th sem.
Network Layer Protocols COMP 3270 Computer Networks Computing Science Thompson Rivers University.
Mobility support in IP v4. Internet Computing (CS-413) 2.
IPv4 IPv4 The Internet Protocol version 4 (IPv4) is the delivery mechanism used by the TCP/IP protocols. Datagram Fragmentation Checksum Options Topics.
Networks Connecting Two Computers With UTP. Every machine on a network has a unique identifier. Just as you would address a letter to send in the mail,
IP Addresses IPv4 IPv6.
Chapter 9 Introduction To Data-Link Layer 9.# 1
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.
Routers and Redundancy
AP CSP: The Need for Addressing
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.
IP: Addressing, ARP, Routing
Vocabulary byte - The technical term for 8 bits of data.
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
Vocabulary byte - The technical term for 8 bits of data.
Lesson 2-3 AP Computer Science Principles
THE NEED FOR DNS DOMAIN NAME SYSTEM
Routers and Redundancy
THE NEED FOR ADDRESSING
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.
Functions and Top-Down Design
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.
7 Network Layer Part IV Computer Networks Tutun Juhana
UNIT 1 – LESSON 6 SENDING NUMBERS.
CS Principles U2L3 Encoding B&W 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.
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.
The Need for Addressing
Data Encoding Characters.
Sending Bits on the Internet
Net 323: NETWORK Protocols
Help! Tell me about Computer Data!
Presenting information as bit patterns
Code.org Lessons 11 & 12 Lesson 11- Packets and Making a Reliable Internet Lesson 12- The Need for DNS.
IP datagram fields cont.
Lec 10 IP V6 3.1 Computer Networks Al-Mustansiryah University
Part IV Network layer 10. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Presentation transcript:

UNIT 2 LESSON 3 CS PRINCIPLES

OBJECTIVES Students will be able to: Construct a binary communication protocol for playing Battleship using the Internet Simulator. Identify necessary information to include in a binary communication protocol and how to order the bits. Connect choices about the Battleship protocol with choices made for real IP addresses and IPv4 packets. Explain properties of IP addresses and IPv4 packets. Explain the difference between IPv4 versus IPv6.

BATTLESHIP PROTOCOL two ideas central to the Internet and how it works: fixed-size numeric addresses for computers (IP addresses) structured “packet” that standardizes the bit layout for information you need to send. Invent an addressing scheme and message (datagram) structure for playing Battleship, these same ideas form a communication protocol that is very similar to real IP addresses and IPv4 packets that are used on the Internet.

PROTOCOL ISSUES Binary protocol challenges: How many people in the world have the same name? Is it a good idea to map a sender or recipient’s identity to their real name? What if their name is John Smith? If students used full names or additional identifying information: Should there be a limit on the length of your protocol? What is the downside of using long names? If students did not use fixed-length addressing: How does the Internet know to separate the addressing information from the message itself? That is, how does the Internet know where the protocol part ends and the message begins?

A GOOD PROTOCOL INCLUDES … A good solution uses a numeric address (not tied to a person’s name) of fixed length. The numeric part deals with the concerns of a needing a unique identifier and taking up less space, and the fixed length solves the problem of letting the Internet know where the message begins. If all addresses are the same length, it’s easy to define where addresses start and end. How many bits do you need for addresses?  For 3-person Battleship, you only need 2 bits for an address, since there are only 3 people; each can have a unique code. How many bits are needed for the total message?  Answers to this will vary and creativity should be encouraged. However, it should be evident from the students’ protocols that they recognize the fundamental elements of the game and what might be able to be compressed into only a few bits. For example, in the game board the columns are given as letters A, B, C; since there are only 3 possibilities, the column could be encoded with 2 bits rather than, say using the full 8-bit ASCII code.

Exemplar:

SUMMARY The message structure you invented for your Battleship protocol is generally described as a “datagram” or “packet”. The real Internet uses a protocol called the “Internet Protocol” or IP. Computers have numeric addresses called “IP addresses”. The most common datagram or packet structure in use today is called an “IPv4 packet” (which means IP version 4). The Internet Protocol is a general protocol used to send messages of any type.

JOURNAL UNIT 2 ENTRY 2  Was your addressing information written in some sort of shorthand? Did you use initials or symbols?  Where did your addressing information go? At the beginning or end of the message? Somewhere inside the the message?  Was your method the same for each message? Did you try out different ways of communicating addressing information in your messages?

JOURNAL UNIT 2 ENTRY 3 Develop a protocol for playing battleship. Include the fields, the number of bits/field, and a breakdown of what those bits mean. The protocol should be able to handle sender and receiver.