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
Concept Questions Demonstrate your knowledge of these concepts by answering the following questions in the space that is provided.

Lecture 18 Overview. Last Lecture. This Lecture. Next Lecture. Internet Protocol (1) Internet Protocol (2)

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

Interconnecting Networks with TCP/IP

Position of IP and other network-layer protocols in TCP/IP protocol suite

The Internet. 9.1 Introduction. The Internet is a global network that supports a variety of interpersonal and interactive multimedia applications.

The Internet Protocol (IP)

IP - The Internet Protocol. Based on the slides of Dr. Jorg Liebeherr, University of Virginia

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

Lecture 11: Networks & Networking

TCP /IP Fundamentals Mr. Cantu

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

Interconnecting Networks with TCP/IP. 2000, Cisco Systems, Inc. 8-1

ECE4110 Internetwork Programming. Introduction and Overview

Internet Protocols (chapter 18)

Internetwork Protocols

Ref: A. Leon Garcia and I. Widjaja, Communication Networks, 2 nd Ed. McGraw Hill, 2006 Latest update of this lecture was on

CompSci 356: Computer Network Architectures. Lecture 8: Spanning Tree Algorithm and Basic Internetworking Ch & 3.2. Xiaowei Yang

Vorlesung Kommunikationsnetze

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

RMIT University. Data Communication and Net-Centric Computing COSC 1111/2061. Lecture 2. Internetworking IPv4, IPv6

Introduction to Internetworking

TCP/IP THE TCP/IP ARCHITECTURE

Internet. 1) Internet basic technology (overview) 3) Quality of Service (QoS) aspects

TSIN02 - Internetworking

Single Network: applications, client and server hosts, switches, access links, trunk links, frames, path. Review of TCP/IP Internetworking

Introduction to TCP/IP networking

Network Layer PREPARED BY AHMED ABDEL-RAOUF

Lecture 8. Network Layer (cont d) Network Layer 1-1

INTERNET SYSTEM. Internet Protocol. Kent State University Dept. of Computer Science. CS 4/55231 Internet Engineering. Large Scale Networking

CMPE 80N: Introduction to Networking and the Internet

The Internet. The Internet is an interconnected collection of netw orks.

TCP/IP Protocol Suite and IP Addressing

Last time. Wireless link-layer. Introduction. Characteristics of wireless links wireless LANs networking. Cellular Internet access

Lesson 5 TCP/IP suite, TCP and UDP Protocols. Chapter-4 L05: "Internet of Things ", Raj Kamal, Publs.: McGraw-Hill Education

EE 610 Part 2: Encapsulation and network utilities

CS-461 Internetworking. Dr. Mohamed Aboutabl

IP Protocols. ALTTC/Oct

Data and Computer Communications. Chapter 2 Protocol Architecture, TCP/IP, and Internet-Based Applications

Internet Control Message Protocol (ICMP)

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

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

CS 356: Computer Network Architectures. Lecture 10: IP Fragmentation, ARP, and ICMP. Xiaowei Yang

This tutorial will help you in understanding IPv4 and its associated terminologies along with appropriate references and examples.

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

TCP/IP and the OSI Model

Defining Networks with the OSI Model. Module 2

Network Layer. The Network Layer. Contents Connection-Oriented and Connectionless Service. Recall:

Network Layer. Recall: The network layer is responsible for the routing of packets The network layer is responsible for congestion control

Chapter 09 Network Protocols

Review of Important Networking Concepts

CSCI-1680 Network Layer: IP & Forwarding John Jannotti

Internet Protocol (IP)

Network and Security: Introduction

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

Networking interview questions

ECE 4450:427/527 - Computer Networks Spring 2017

ET4254 Communications and Networking 1

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

Layering in Networked computing. OSI Model TCP/IP Model Protocols at each layer

CIS 551 / TCOM 401 Computer and Network Security. Spring 2006 Lecture 16

Packet Header Formats

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

TCP/IP Overview. Basic Networking Concepts. 09/14/11 Basic TCP/IP Networking 1

Need For Protocol Architecture

Network Layer: Control/data plane, addressing, routers

Telecom Systems Chae Y. Lee. Contents. Overview. Issues. Addressing ARP. Adapting Datagram Size Notes

Network Model. Why a Layered Model? All People Seem To Need Data Processing

Prof. Shervin Shirmohammadi SITE, University of Ottawa. Internet Protocol (IP) Lecture 2: Prof. Shervin Shirmohammadi CEG

CHAPTER-2 IP CONCEPTS

OSI Reference Model. Application Layer. Presentation Layer. Session Layer. Transport Layer. Chapter 4: Application Protocols.

Network Architecture Models

Goals and topics. Verkkomedian perusteet Fundamentals of Network Media T Circuit switching networks. Topics. Packet-switching networks

The Interconnection Structure of. The Internet. EECC694 - Shaaban

CC231 Introduction to Networks Dr. Ayman A. Abdel-Hamid. Internet Protocol Suite

03 The Internet Model and TCP/IP

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

Network Layer: Internet Protocol

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

Internetworking Terms. Internet Structure. Internet Structure. Chapter 15&16 Internetworking. Internetwork Structure & Terms

b. Suppose the two packets are to be forwarded to two different output ports. Is it

Chapter 5 Network Layer

TSIN02 - Internetworking

Revision of Previous Lectures

TSIN02 - Internetworking

Lecture 20 Overview. Last Lecture. This Lecture. Next Lecture. Transport Control Protocol (1) Transport Control Protocol (2) Source: chapters 23, 24

End-to-End Communication

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

Chapter 2 Network Models 2.1

ECE 158A: Lecture 7. Fall 2015

Ch.7 Internet Protocol: Connectionless Datagram Delivery (IPv4, IPv6)

Data Communication Prof. A. Pal Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur Lecture 34 TCP/ IP I

Chapter 12 Network Protocols

Need For Protocol Architecture

Layer 4: UDP, TCP, and others. based on Chapter 9 of CompTIA Network+ Exam Guide, 4th ed., Mike Meyers

Veryx ATTEST TM. Sample Test cases Overview. Conformance Test Suite. Internet Protocol version 4 (IPv4) Part Number: T / TCLS IPv /1.

CSCI Computer Networks Fall 2016

Computer Networking: A Top Down Approach Featuring the. Computer Networks with Internet Technology, William

Review of Important Networking Concepts. Recall the Example from last lecture

Lecture 9: Internetworking

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); 2017-3.8 billion (51.7%) 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

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 12

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 13

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 14

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 15

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 16

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 17

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

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 19

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 20

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 21

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 22

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 23

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 24