CS101 Lecture 6: Internetworking: Internet Protocol, IP Addresses, Routing, DNS. John Magee 8 July Some images courtesy Wikimedia Commons

Similar documents
CS101 Lecture 7: Internetworking:

CS 4390 Computer Networks. Transport Services and Protocols

Chapter 3 Transport Layer

Chapter 3 Transport Layer

CSC 401 Data and Computer Communications Networks

CSEN 503 Introduction to Communication Networks. Mervat AbuElkheir Hana Medhat Ayman Dayf. ** Slides are attributed to J. F.

CSC 4900 Computer Networks: Transport Layer

CMSC 332 Computer Networks Transport Layer

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 7

CS 3516: Computer Networks

Lecture 9: Transpor Layer Overview and UDP

Input ports, switching fabric, output ports Switching via memory, bus, crossbar Queueing, head-of-line blocking

Chapter III: Transport Layer

networks List various types of networks and their

Transport Layer. Chapter 3: Transport Layer

Introduction to computer networking

ETSF10 Internet Protocols Network Layer Protocols

Lecture 8. Reminder: Homework 3, Programming Project 2 due on Thursday. Questions? Tuesday, September 20 CS 475 Networks - Lecture 8 1

Chapter 15 Networks. Chapter Goals. Networking. Chapter Goals. Networking. Networking. Computer network. Node (host) Any device on a network

Computer Communications DIT 420 EDA343

Lecture 8. Basic Internetworking (IP) Outline. Basic Internetworking (IP) Basic Internetworking (IP) Service Model

CMPE 80N: Introduction to Networking and the Internet

ECPE / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

CSC358 Week 4. Adapted from slides by J.F. Kurose and K. W. Ross. All material copyright J.F Kurose and K.W. Ross, All Rights Reserved

cs144 Midterm Review Fall 2010

COSC4377. Useful Linux Tool: screen

Department of Computer and IT Engineering University of Kurdistan. Network Layer. By: Dr. Alireza Abdollahpouri

CSCD 433/533 Advanced Networks

precise rules that govern communication between two parties TCP/IP: the basic Internet protocols IP: Internet protocol (bottom level)

Where we are in the Course

Chapter 2 - Part 1. The TCP/IP Protocol: The Language of the Internet

What s a protocol? What s a protocol? A closer look at network structure: What s the Internet? What s the Internet? What s the Internet?

Kent State University

Chapter 2: outline. 2.6 P2P applications 2.7 socket programming with UDP and TCP

ICS 351: Networking Protocols

Suprakash Datta. Office: CSEB 3043 Phone: ext Course page:

CS 3516: Computer Networks

Defining the Internet

Internet. Organization Addresses TCP/IP Protocol stack Forwarding. 1. Use of a globally unique address space based on Internet Addresses

Lecture 16: Network Layer Overview, Internet Protocol

OSI Network Layer. Chapter 5

Lecture 3. The Network Layer (cont d) Network Layer 1-1

CN1047 INTRODUCTION TO COMPUTER NETWORKING CHAPTER 6 OSI MODEL TRANSPORT LAYER

Introduction to Networking

CNPE Communications and Networks Lab Book: Data Transmission Over Digital Networks

Quiz. Segment structure and fields Flow control (rwnd) Timeout interval. Phases transition ssthresh setting Cwnd setting

SEMESTER 1 Chapter 5 OSI Network Layer V What services does the network layer provide?

CS 204: Advanced Computer Networks

Announcement. Homework 1 due last night, how is that? Will discuss some problems in the lecture next week

The Interconnection Structure of. The Internet. EECC694 - Shaaban

Network Reference Models

Network Programming. CSE 132 Spring 2016

EE-311 Data Communication & Networks

CSCE 463/612 Networks and Distributed Processing Spring 2018

Lecture 2 Communication services The Trasport Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

CS475 Networks Lecture 8 Chapter 3 Internetworking. Ethernet or Wi-Fi).

Chapter 4 Network Layer: The Data Plane. Part A. Computer Networking: A Top Down Approach

Chapter 4: Network Layer

CSCI-1680 Network Layer: IP & Forwarding John Jannotti

Session 2. Background. Lecture Objectives

Communication Networks ( ) / Fall 2013 The Blavatnik School of Computer Science, Tel-Aviv University. Allon Wagner

Department of Computer Science and Engineering. COSC 4213: Computer Networks II (Fall 2005) Instructor: N. Vlajic Date: November 3, 2005

OSI Network Layer. Network Fundamentals Chapter 5. Version Cisco Systems, Inc. All rights reserved. Cisco Public 1

EC441 Fall 2018 Introduction to Computer Networking Chapter4: Network Layer Data Plane

Unit 28 Website Production ASSIGNMENT 1

CSCD 330 Network Programming

ECPE / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Outline. Addressing on the network layer ICMP IPv6 Addressing on the link layer Virtual circuits

Network layer Network Layer 4-1

The OSI Model. Open Systems Interconnection (OSI). Developed by the International Organization for Standardization (ISO).

What s a protocol? What s a protocol? A closer look at network structure: What s the Internet? Hardware view: What s the Internet?

RSC Part I: Introduction

Local Area Networks; Ethernet

Review of Important Networking Concepts

CSCE 463/612 Networks and Distributed Processing Spring 2018

CSE 4213: Computer Networks II

Internet Control Message Protocol (ICMP)

Chapter 6 Transport Layer

Networking Background

Network Layer: Control/data plane, addressing, routers

Lecture 2: Internet Structure

Copyleft 2005, Binnur Kurt. Objectives

Chapter 5 OSI Network Layer

ECE 4450:427/527 - Computer Networks Spring 2017

Network layer: Overview. Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing

What is a Network? TCP / IP. The ISO OSI Model. Protocols. The TCP/IP Protocol Suite. The TCP/IP Protocol Suite. Computer network.

The Internet. Overview. Network building blocks

Network layer: Overview. Network Layer Functions

INTERNET ARCHITECTURE & PROTOCOLS

Guide to Networking Essentials, 6 th Edition. Chapter 5: Network Protocols

Business Data Communications and Networking

Network+ Guide to Networks 6 th Edition. Chapter 4 Introduction to TCP/IP Protocols

CPS221 Lecture: Layered Network Architecture

1-1. Switching Networks (Fall 2010) EE 586 Communication and. October 25, Lecture 24

CSC 401 Data and Computer Communications Networks

1/18/13. Network+ Guide to Networks 5 th Edition. Objectives. Chapter 10 In-Depth TCP/IP Networking

Internet Protocol. Outline Introduction to Internet Protocol Header and address formats ICMP Tools CS 640 1

CSE/EE 461 The Network Layer. Application Presentation Session Transport Network Data Link Physical

ECPE / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

Transcription:

CS101 Lecture 6: Internetworking: Internet Protocol, IP Addresses, Routing, DNS John Magee 8 July 2013 Some images courtesy Wikimedia Commons 1 Overview/Questions What does Internet Protocol actually do? What is an IP address? How do packets get where they need to go? How is an Internet domain name related to an IP address? 2 1

What s a protocol? a human protocol and a computer network protocol: Hi Hi Got the time? 2:00 time TCP connection request TCP connection response Get http://www.awl.com/kurose-ross <file> Q: Other human protocols? Introduction 1-3 Network Protocols Protocol A set of rules that defines how data is formatted and processed on a network. From next week s video: Bob Kahn/BBN had been developing many different packet switching networks in 1970s Each network had its own hardware, nodeaddressing scheme, and protocols (http://en.wikipedia.org/wiki/packet_switched_network) 2

Internet structure: network of networks roughly hierarchical at center: small # of well-connected large networks tier-1 commercial ISPs (e.g., Verizon, Sprint, AT&T, Qwest, Level3), national & international coverage large content distributors (Google, Akamai, Microsoft) treat each other as equals (no charges) IXP IXP Tier-1 ISPs & Content Distributors, interconnect (peer) privately or at Internet Exchange Points IXPs Large Content Distributor (e.g., Akamai) Tier 1 ISP Tier 1 ISP Tier 1 ISP Large Content Distributor (e.g., Google) Introduction 1-5 Analogy: Intermodal Transport What do these have in common? 6 3

Network Protocols Vint Cerf and Bob Khan created Internet Protocol, to connect different packet switching networks. "A Protocol for Packet Network Interconnection, published in 1974 Open System A system which is based on published standards for how protocols should work. Interoperability of hardware and software from different vendors Internet Protocol Core ideas in Internet Protocol Each node has a logical IP address Separates application data from physical transport mechanism IP packets can travel across multiple networks Does not guarantee packet delivery best effort 4

Internet Protocol Layer Model A four-layer model of network interaction to facilitate communication standards. Each layer deals with a particular aspect of network communication. Network protocols are usually specific to one layer of this model. IP is a layer 2 protocol. 9 Transport vs. network layer network layer: logical communication between hosts transport layer: logical communication between processes relies on, enhances, network layer services Household analogy: 12 kids sending letters to 12 kids processes = kids app messages = letters in envelopes hosts = houses transport protocol = Ann and Bill who demux to inhouse siblings network-layer protocol = postal service Transport Layer 3-10 5

Transport Layer Protocols Break messages into packets, hands them off to the IP software for delivery, and then orders and reassembles the packets at their destination. Transmission Control Protocol (TCP) A reliable transport protocol: TCP guarantees delivery of packets as well as data integrity. User Datagram Protocol (UDP) An unreliable transport protocol. UDP does not guarantee delivery of packets. Does provide data integrity of packets 11 Internet transport-layer protocols reliable, in-order delivery (TCP) congestion control flow control connection setup unreliable, unordered delivery: UDP no-frills extension of besteffort IP services not available: delay guarantees bandwidth guarantees application transport network data link physical network data link physical network data link physical network data link physical network data link physical network data link physical network data link physical application transport network data link physical Transport Layer 3-12 6

TCP vs UDP Which to use? Examples 13 Application Layer Protocols The application layer creates data and communicates to other applications on the same or another host. Layering of key network protocols (diagram showing internet (2), transport (3), and application (4) layers 14 7

Application-Level Protocols Port A numeric designation that corresponds to a particular high-level protocol Some high-level protocols which rely upon Internet Protocol, and the ports they use. 15 Network Addresses Recall that a network is a collection of nodes. Each node on a network must be uniquely identifiable. Hostname A name made up of words separated by dots which uniquely identifies a computer on the Internet. Hostnames for a given organization share some common part called a domain name e.g. bu.edu for BU. Examples: www.bu.edu, smtp.bu.edu 16 8

Network Addresses A hostname is a mnemonic for an IP Address. IP Address A logical address made up of four one-byte integers, which uniquely identifies a computer on the Internet. For human consumption, IP addresses are specified in dotted-decimal form. Example: 128.197.26.3 Is there a relationship between the parts of a hostname and an IP address? 17 Network Addresses The IP Address is made up of 2 components: the Network Number and the Host Number. An IP address is stored in four bytes Class A: first byte network number, and three bytes for host number. Class B: first two bytes for network number, and two bytes for host number Class C: first three bytes for network number, and one byte for host number 18 9

Network Addresses The IP Address space is divided into address classes, which determines the size of the address space for administrative purposes. Class Leading Bits Number of Networks Addresses/Network Class A 0 128 16,777,214 Class B 10 16,384 65,534 Class C 110 2,097,152 254 Large telecom companies got Class A addresses. Universities got Class B addresses. Smaller individual companies got Class C addresses. 19 IP Address IPv4 uses 32 bit addresses How many addresses available? Will we run out? Causes Solutions 20 10

IP Packet Header Each protocol encapsulates some user data along with a packet header. The packet header contains information used for routing and sequencing. 21 IP Packet Header The IP Packet Header is 20 bytes (160 bits) of data: The header specifies 13 fields, including: packet length source and destination IP addresses fragment sequence time to live (number of hops remaining). 22 11

Routing Routing Routing directs the forwarding of IP packets from their source to their destination. Example by analogy: Suppose you re flying from Boston, MA to Portland, OR. How do you get there? 23 Example: BOS to PDX United Airlines Route map, source: http://www.united.com/page/article/0,6722,1020,00.html 24 12

BOS to PDX: Possible Routes BOS to IAD to PDX (2 hops) BOS to DEN to PDX (2 hops) BOS to SFO to PDX (2 hops) BOS to ORD to PDX (2 hops) BOS to IAD to SFO to PDX (3 hops) BOS to IAD to DFW to DEN to PDX (4 hops) 25 BOS to PDX: Possible Routes Suppose you take the first flight to IAD, and then the flight from IAD to PDX was cancelled. Now what? IAD to PDX (cancelled) IAD to ORD to PDX (2 hops) IAD to DEN to PDX (2 hops) IAD to LAX to PDX (2 hops) IAD to DFW to DEN to PDX (3 hops) 26 13

Routing Algorithms Routing Information Protocol (RIP) Uses distance-vector calculation to minimizes the number of hops. Maximum 15 hops, updates every 30 seconds. Open-Shortest Path First (OSPF) Detects link failures and adapts quickly Broadcasts updates to entire network Incorporates delay and bandwidth 27 Domain Name System Domain Name The part of a hostname that specifies a specific organization or group. Example: bu.edu Domain Name System (DNS) A distributed system for managing hostname resolution the process of converting a domain name to an IP address. Analogous to a phone book for Internet hosts. 28 14

Domain Name System cs-people.bu.edu hostname domain name Top-Level Domain (TLD) TLD The last section of a Domain Name that specifies the type of organization or its country of origin. http://en.wikipedia.org/wiki/top-level_domain 29 Domain Name System Domain Name Server Attempts to translate a hostname into an IP address. In practice, a hostname resolution might require queries to several DNS servers, each one with more detailed information than the previous one. Client programs such as web browsers send requests to a DNS Resolver (in the operating system), which communicates with the DNS servers. 30 15

DNS Query The DNS Resolver typically maintains a cache to prevent unnecessary queries to the DNS Servers. DNS cache entries have a time to live (TTL) metric which prevents stale information from being used. 31 Domain Name System DNS administrators makes changes manually It takes several hours for changes to propagate throughout the network. When DNS servers fail, users get a host not found type of error DNS update errors have caused large outages. DNS servers are prime targets of denial of service attacks. 32 16

Networking Tools Windows: ipconfig arp ping tracert (traceroute) Others such as: nslookup whois 33 Take-Away Points Internet Protocol Hostnames and IP Addresses TCP/UDP Routing Domain Name System Combine these ingredients to get the Internet (use only as directed; results may vary). 34 17

Student To Dos Readings: Reed ch 3, pp 44-53 Reed ch 4, pp 64-79 Reed ch 2, pp 27-35 http://en.wikipedia.org/wiki/ipv4_address_exhaustion Email your blog/journal address. Write! HW1 (Take home quiz) due Tonight HW2 (Alice) due Wednesday @ class HW3 (HTML) due next Monday Quiz 1 on Thursday Wednesday: Meet in CS Teaching Lab 35 18