Lecture 17 Overview. Last Lecture. Wide Area Networking (2) This Lecture. Internet Protocol (1) Source: chapters 2.2, 2.3,18.4, 19.1, 9.

Similar documents
Indian Institute of Technology Kharagpur. TCP/IP Part I. Prof Indranil Sengupta Computer Science and Engineering Indian Institute of Technology

Ethernet. Ethernet. Network Devices

Mobile IP Network Layer Lesson 02 TCP/IP Suite and IP Protocol

8.2 The Internet Protocol

RARP: Reverse Address Resolution Protocol

Lecture Computer Networks

Network Layer IPv4. Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS. School of Computing, UNF

Network Layer: Network Layer and IP Protocol

IP - The Internet Protocol

Transport and Network Layer

Chapter 9. IP Secure

Network-Oriented Software Development. Course: CSc4360/CSc6360 Instructor: Dr. Beyah Sessions: M-W, 3:00 4:40pm Lecture 2

SUPPORT DE COURS. Dr. Omari Mohammed Maître de Conférences Classe A Université d Adrar Courriel : omarinmt@gmail.com

Internetworking. Problem: There is more than one network (heterogeneity & scale)

IP Network Layer. Datagram ID FLAG Fragment Offset. IP Datagrams. IP Addresses. IP Addresses. CSCE 515: Computer Network Programming TCP/IP

Network Programming TDC 561

Gary Hecht Computer Networking (IP Addressing, Subnet Masks, and Packets)

Overview of TCP/IP. TCP/IP and Internet

Network layer: Overview. Network layer functions IP Routing and forwarding

UPPER LAYER SWITCHING

Lecture 15. IP address space managed by Internet Assigned Numbers Authority (IANA)

Lecture 8. IP Fundamentals

Technical Support Information Belkin internal use only

Interconnection of Heterogeneous Networks. Internetworking. Service model. Addressing Address mapping Automatic host configuration

Internet Architecture and Philosophy

04 Internet Protocol (IP)

Internet Control Protocols Reading: Chapter 3

2. IP Networks, IP Hosts and IP Ports

Guide to TCP/IP, Third Edition. Chapter 3: Data Link and Network Layer TCP/IP Protocols

1 Data information is sent onto the network cable using which of the following? A Communication protocol B Data packet

Network layer" 1DT066! Distributed Information Systems!! Chapter 4" Network Layer!! goals: "

Course Overview: Learn the essential skills needed to set up, configure, support, and troubleshoot your TCP/IP-based network.

The Internet. Internet Technologies and Applications

Chapter 3. TCP/IP Networks. 3.1 Internet Protocol version 4 (IPv4)

Networking Test 4 Study Guide

Chapter 4 Network Layer

Network Security TCP/IP Refresher

Basic Networking Concepts. 1. Introduction 2. Protocols 3. Protocol Layers 4. Network Interconnection/Internet

Chapter 3: Review of Important Networking Concepts. Magda El Zarki Dept. of CS UC Irvine

Network Layer. Introduction Datagrams and Virtual Circuits Routing Traffic Control. Data delivery from source to destination.

First Workshop on Open Source and Internet Technology for Scientific Environment: with case studies from Environmental Monitoring

TCP/IP Fundamentals. OSI Seven Layer Model & Seminar Outline

The TCP/IP Reference Model

Mathatma Gandhi University

Guide to Network Defense and Countermeasures Third Edition. Chapter 2 TCP/IP

Internetworking and Internet-1. Global Addresses

Objectives of Lecture. Network Architecture. Protocols. Contents

Address Resolution Protocol (ARP), Reverse ARP, Internet Protocol (IP)

Introduction to TCP/IP

Internet Protocols. Addressing & Services. Updated:

Basic Operation & Management of TCP/IP Networks

Network Layer, Part 1 Internet Architecture. History

How do I get to

Future Internet Technologies

Savera Tanwir. Internet Protocol

CS335 Sample Questions for Exam #2

Network Models and Protocols

TCP/IP and the Internet

PPS Internet-Praktikum. Prof. Bernhard Plattner Institut für Technische Informatik und Kommunikationsnetze (TIK)

Themen der Praktikumsnachmittage. PPS Internet-Praktikum. Zielsetzung. Infrastruktur im ETF B5

Lecture 28: Internet Protocols

IP Addressing Introductory material.

The internetworking solution of the Internet. Single networks. The Internet approach to internetworking. Protocol stacks in the Internet

EITF25 Internet Techniques and Applications L5: Wide Area Networks (WAN) Stefan Höst

Slide 1 Introduction cnds@napier 1 Lecture 6 (Network Layer)

Internet Protocol Address

Internet Protocols. Background CHAPTER

Internetworking Microsoft TCP/IP on Microsoft Windows NT 4.0

Introduction to IP v6

Internet Concepts. What is a Network?

ICS 351: Today's plan

Overview. Securing TCP/IP. Introduction to TCP/IP (cont d) Introduction to TCP/IP

Transport Layer. Chapter 3.4. Think about

CS 457 Lecture 19 Global Internet - BGP. Fall 2011

CS 43: Computer Networks IP. Kevin Webb Swarthmore College November 5, 2013

Procedure: You can find the problem sheet on Drive D: of the lab PCs. 1. IP address for this host computer 2. Subnet mask 3. Default gateway address

TCP/IP works on 3 types of services (cont.): TCP/IP protocols are divided into three categories:

Subnetting,Supernetting, VLSM & CIDR

Raritan Valley Community College Academic Course Outline. CISY Advanced Computer Networking

Internet Protocols Fall Lectures 7-8 Andreas Terzis

Datacommunication. Internet Infrastructure IPv4 & IPv6

Introduction to IP networking

NETWORK LAYER/INTERNET PROTOCOLS

Transport Layer Protocols

- IPv4 Addressing and Subnetting -

IP Subnetting. Subnetting

Internet Protocol Version 6 (IPv6)

TCP/IP Basis. OSI Model

Internet Working 5 th lecture. Chair of Communication Systems Department of Applied Sciences University of Freiburg 2004

Operating System Concepts. Operating System 資 訊 工 程 學 系 袁 賢 銘 老 師

The OSI and TCP/IP Models. Lesson 2

Computer Networks/DV2 Lab

The OSI model has seven layers. The principles that were applied to arrive at the seven layers can be briefly summarized as follows:

Chapter 11. User Datagram Protocol (UDP)

IP Addressing. IP Addresses. Introductory material.

1000 CCNA Certification Exam Preparation Questions and Answers:

IP address format: Dotted decimal notation:

Computer Networks. Introduc)on to Naming, Addressing, and Rou)ng. Week 09. College of Information Science and Engineering Ritsumeikan University

Data Communication Networks Introduction

A PPENDIX L TCP/IP and OSI

Transcription:

Lecture 17 Overview Last Lecture Wide Area Networking (2) This Lecture Internet Protocol (1) Source: chapters 2.2, 2.3,18.4, 19.1, 9.2 Next Lecture Internet Protocol (2) Source: chapters 19.1, 19.2, 22,1 22.2, 26.6 COSC244 & TELE202 Lecture 17 - Internet Protocol 1 1

A Brief History of the Internet Started in late 1960's by US Dept of Defense, funded by Advanced Research Project Agency (ARPA). A packet-switching network used to connect research universities and military Conventions developed by ARPA that specify how individual computers communicate across that network became TCP/IP. Size 1969-4 sites, 1981-200 sites; 1996-100,000th network added in Internet; 1997-16M hosts; 1998-30M hosts; 2013- the estimated Internet users 2.802 billion (39% of world population) Internet world status: http://www.internetworldstats.com/stats.htm COSC244 & TELE202 Lecture 17 - Internet Protocol 1 2

Who Controls It Internet Activities Board Internet Engineering Task Force (IETF) Ongoing evolution of the TCP/IP protocols Internet Research Task Force Works on advancing network technology and long-term research Network Information Center Assigns network IP addresses RFC (Request For Comments) Technical reports on protocols COSC244 & TELE202 Lecture 17 - Internet Protocol 1 3

The Internet Model Also called the TCP/IP Reference model OSI seven-layer model TCP/IP four-layer model Application Presentation Session Transport Network Data-link Physical Application Transport Internet Host-to-network (Network interface) COSC244 & TELE202 Lecture 17 - Internet Protocol 1 4

TCP/IP Protocol Suite The main protocols for the Internet TCP: Transmission Control Protocol IP: Internet Protocol SMTP FTP TELNET DNS Application layer TCP UDP Transport layer IP and ICMP Lower layer protocols Network layer Data link layer COSC244 & TELE202 Lecture 17 - Internet Protocol 1 5

IP - Internet Protocol Unreliable connectionless protocol Use packet-switching Provide a datagram service between stations Deliver a packet from source to destination Routing decisions may be made for each packet Packets are not guaranteed to arrive in order or via the same route IP takes care of network differences Make sure IP packets can be transferred through different networks COSC244 & TELE202 Lecture 17 - Internet Protocol 1 6

IP - Internet Protocol (cont.) COSC244 & TELE202 Lecture 17 - Internet Protocol 1 7

IPv4 Packet Format 20-60 bytes Header 20-65,536 bytes VER 4 bits Time to live 8 bits HLEN Service 4 bits 8 bits Identification 16 bits Protocol 8 bits Flags 3 bits Total length 16 bits Fragmentation offset 13 bits Header checksum 16 bits Source IP address Destination IP address Option 32 bits COSC244 & TELE202 Lecture 17 - Internet Protocol 1 8

IPv4 Packet Fields Version (4 bits) Version of IP that created the packet IPv4, may be totally replaced by IPv6 in the future Header length (4 bits) Number of 32-bit words in the packet header Minimum 5, maximum 15 Type of service (8 bits) Allows the host to tell the subnet what kind of service it desires (reliability and speed) Packet length (16 bits) Length of the entire IP packet. Max 64KB. COSC244 & TELE202 Lecture 17 - Internet Protocol 1 9

IPv4 Packet Fields (cont.) Identification (16 bits), flags (3 bits), fragment offset (13 bits) When the packet is too big, these fields are used for breaking a packet into multiple packets at routers and reassembling them at the destination. Time to live (8 bits) Originally designed to hold a timestamp, and the packet is discarded when the value becomes zero (require synchronization among all machines). Today, this field is used mostly to control the maximum number of hops visited by the packet. Each router decreases the value by one and discards the packet if the value becomes zero. Can be used intentionally to limit the journey of the packet, e.g. to confine the packet to the local network. Protocol (8 bits) Specifies the next higher layer protocol. Used at destination to give data to the appropriate entity. COSC244 & TELE202 Lecture 17 - Internet Protocol 1 10

IPv4 Packet Fields (cont.) Header checksum (16 bits) Error detection for the packet header. IP only worries about errors at its level. Source and destination IP addresses 32 bit fields for the addresses Options record route, source route, timestamp Padding Makes header end at a 32 bit boundary Data Data provided by higher layer COSC244 & TELE202 Lecture 17 - Internet Protocol 1 11

IP Names and Addresses IP domain Hierarchical Domains are not geographic Domains can have subdomains Examples: nz, co.nz, org, com, edu, otago.ac.nz IP Name chasm.otago.ac.nz IPv4 Address 32 bits Dotted-decimal notation: each of the four bytes are written as a decimal number separated by periods, e.g. 139.80.32.68 Domain Name System (DNS) DNS servers map an IP name into an IP address. Details about this mapping will be introduced in next lecture COSC244 & TELE202 Lecture 17 - Internet Protocol 1 12

IPv4 Address Classes IPv4 address structure: two main components Network ID Host ID IPv4 addresses are divided into 5 classes A: 1 st byte 0 2 nd byte 3 rd byte 4 th byte 1.0.0.0-127.255.255.255 B: C: 10 110 128.0.0.0-191.255.255.255 192.0.0.0-223.255.255.255 D: 1110 E: 1111 224.0.0.0-239.255.255.255 240.0.0.0-247.255.255.255 COSC244 & TELE202 Lecture 17 - Internet Protocol 1 13

IP Address Classes (cont.) Class A 8-bit network address, 24-bit node ID address, 126 networks of 16 million hosts Class B 16-bit network address, 16-bit node ID address, 16,384 networks of 64K hosts Class C 24-bit network address, 8-bit node ID address, 2 million networks of 254 hosts Class D is multicast address Class E is reserved for future use COSC244 & TELE202 Lecture 17 - Internet Protocol 1 14

IP Routing An IP router keeps track of other networks and all local hosts by using routing tables. 132.80.32.x COSC244 & TELE202 Lecture 17 - Internet Protocol 1 15

Router's Actions to IP Packets Checksum Verify checksum Decrement time-to-live field Recompute checksum Extract the IP address of the packet. If the packet s source route option is marked, route the packet according to the route indicated. Skip the remaining steps. Determine the network ID contained in the IP address. Does the network ID match any network to which the router is connected? If yes, determine the MAC address of the destination and send the IP packet to that destination. If not, find the network ID in the routing table and forward the packet to the specified router. If, for some reason, the network is not in the routing table, forward the packet to a default router. COSC244 & TELE202 Lecture 17 - Internet Protocol 1 16

Mapping IP Addresses to Hardware Addresses The data link layer does not understand IP addresses. IP addresses cannot be used by the data link layer to send frames. How does an IP address get mapped to a MAC address? Hardware address Ethernet address Consider 139.80.32.104 00-01-02-95-D4-16 COSC244 & TELE202 Lecture 17 - Internet Protocol 1 17

Address Resolution Protocol (ARP) When the IP layer gets frame with an IP address and determines it is on its own LAN, it needs to determine the hardware address of the destination. ARP algorithm: The router broadcasts a frame onto the network asking "who owns the IP address specified?" The host specified by the IP address responds with its hardware address. The router uses the hardware address to send the packet to the destination. COSC244 & TELE202 Lecture 17 - Internet Protocol 1 18

Address Resolution Protocol (cont.) ARP request A Request Who owns IP 139.80.32.104 B ARP reply A The nod physical address is 00-01-02-95-D4-16 Request B COSC244 & TELE202 Lecture 17 - Internet Protocol 1 19

A Routing Example Consider the network of slide 15. L1 is a star LAN using IEEE 802.3. L2 is a ring LAN using IEEE 802.5. L3 is a bus LAN using IEEE 802.3. The interconnecting network uses leased telephone lines as the physical layer and PPP as the data link layer. R1, R2, and R3 are routers which connect between the LANs and the interconnecting network. Each host (non-router) has an IP address (unique in the IP network). h1-h3 have IP addresses: 198.80.32.1-198.80.32.3 (class C) h4-h6 have IP addresses: 200.60.32.1-200.60.32.3 (class C) h7-h10 have IP addresses: 132.80.32.1-132.80.32.4 (class B) Each host has a MAC address, hi_mac, local to its LAN. COSC244 & TELE202 Lecture 17 - Internet Protocol 1 20

Routing Example (cont.) Each router is connected to both a LAN and the interconnecting network. Each router has an IP address for each of its LAN connections. R1 has a LAN IP address 198.80.32.4 R2 has a LAN IP address 200.60.32.4 R3 has a LAN IP address 132.80.32.5 Each router also has IP addresses for each of its interconnecting network connections. R1 has IP addresses: 123.45.44.1 and 124.22.66.1 R2 has IP addresses: 123.45.44.2 and 125.11.67.2 R3 has IP addresses: 124.22.66.2 and 125.11.67.1 Each router has multiple MAC addresses: one for its LAN, one for each of its interconnecting networks. Will use Ri_mac to represent them. COSC244 & TELE202 Lecture 17 - Internet Protocol 1 21

A Routing Example (cont.) The routing tables are as follows Destination R1 R2 R3 Next hop 198.80.32 local 123.45.44.1 124.22.66.1 200.60.32 123.45.44.2 local 125.11.67.2 132.80.32 124.22.66.2 125.11.67.1 local COSC244 & TELE202 Lecture 17 - Internet Protocol 1 22

A Routing Example (cont.) IP layer at each host: It can receive packets from the TCP layer. If a packet is destined to a host in its LAN, it uses ARP to find the host s MAC address, hi_mac, and sends the packet using hi_mac. If a packet is destined to a host outside its LAN, it finds the router s MAC address using ARP and sends the packet to the router using Ri_mac. COSC244 & TELE202 Lecture 17 - Internet Protocol 1 23

A Specific Routing Example Assume h1 wants to send an IP packet to h9. h1 sets the destination field of the packet as 132.80.32.3. Because the packet has a destination outside L1, h1 finds the MAC address of R1 using ARP and sends the packet using R1_mac. When R1 receives the packet, it checks the destination of the packet and finds it is 132.80.32.3. R1 checks its routing table and finds the next hop for network 132.80 is 124.22.66.2 (R3). R1 uses ARP to find the MAC address of 124.22.66.2, R3_mac, and sends the packet using R3_mac. When R3 receives the packet, it checks the destination of the packet and finds it is 132.80.32.3. R3 knows 132.80.32.3 is in its LAN. So R3 uses ARP to find the MAC address of 132.80.32.3 (h9_mac). R3 sends the packet using h9_mac. Finally the IP network layer in h9 receives the packet. COSC244 & TELE202 Lecture 17 - Internet Protocol 1 24

Summary Concepts TCP/IP protocol suite TCP/IP reference model IP protocol IP packet IP address, IP domain, and IP name Address Resolution Protocol (ARP) How an IP packet is sent through Internet? COSC244 & TELE202 Lecture 17 - Internet Protocol 1 25