PART X. Internetworking Part 1. (Concept, IP Addressing, IP Routing, IP Datagrams, Address Resolution)

Similar documents
Chapter Motivation For Internetworking

IP Address Assignment

Motivation For Networking. Information access Interaction among cooperative application programs Resource sharing

Internet Protocol (IP)

Kent State University

TCP/IP and the OSI Model

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

IP: Addressing, ARP, Routing

SEN366 (SEN374) (Introduction to) Computer Networks

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

The Internet Protocol. IP Addresses Address Resolution Protocol: IP datagram format and forwarding: IP fragmentation and reassembly

ARP, IP. Chong-Kwon Kim. Each station (or network interface) should be uniquely identified Use 6 byte long address

Introduction. IP Datagrams. Internet Service Paradigm. Routers and Routing Tables. Datagram Forwarding. Example Internet and Conceptual Routing Table

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

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

The Interconnection Structure of. The Internet. EECC694 - Shaaban

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

ET4254 Communications and Networking 1

Internet Protocols (chapter 18)

Introduction to Internetworking

ECE 4450:427/527 - Computer Networks Spring 2017

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

CS610 Computer Network Final Term Papers Solved MCQs with reference by Virtualians Social Network

Network Layer PREPARED BY AHMED ABDEL-RAOUF

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

CS-461 Internetworking. Dr. Mohamed Aboutabl

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

Networking: Network Layer

OSI Network Layer. Chapter 5

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

The Internet Protocol (IP)

UDP: Datagram Transport Service

Network Layer: Internet Protocol

PART IV. Internetworking Using TCP/IP

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

COMP/ELEC 429/556 Introduction to Computer Networks

Internetwork Protocols

Network Layer/IP Protocols

EE 610 Part 2: Encapsulation and network utilities

Network Layer: Control/data plane, addressing, routers

ECE4110 Internetwork Programming. Introduction and Overview

EITF25 Internet Techniques and Applications L7: Internet. Stefan Höst

Introduction Layer 3. IP-Header: and RFC-760 Addressing schemes Subnetting Routing. Layer 3 Solution in Trains

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

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

Linux System Administration

OSI Data Link & Network Layer

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

Lecture 11: Networks & Networking

Revision of Previous Lectures

CPSC 826 Internetworking. The Network Layer: Routing & Addressing Outline. The Network Layer

Internet Protocol Addressing and Routing. Redes TCP/IP

Networking Background

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

Router Architecture Overview

Introduction to Internet. Ass. Prof. J.Y. Tigli University of Nice Sophia Antipolis

OSI Data Link & Network Layer

This Lecture. BUS Computer Facilities Network Management. Internetworking. Internetworking

Vorlesung Kommunikationsnetze

IP : Internet Protocol

2/22/2008. Outline Computer Networking Lecture 9 IP Protocol. Hop-by-Hop Packet Forwarding in the Internet. Internetworking.

Layer 2 functionality bridging and switching

CS 455 Internet Architecture, Page 3 ffl By 1985, the ARPANET was heavily used and congested; the National Science Foundation (NSF) initiated the NSFN

TSIN02 - Internetworking

OSI Data Link & Network Layer

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


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.

Ch.6 Mapping Internet Addresses to Physical Addresses (ARP)

Introduction to TCP/IP

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

TSIN02 - Internetworking

7010INT Data Communications Lecture 7 The Network Layer

Lecture (03) Internet Protocol tcp/ip> OSI>

TCP/IP Protocol Suite and IP Addressing

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

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

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

ES623 Networked Embedded Systems

Networks. an overview. dr. C. P. J. Koymans. Informatics Institute University of Amsterdam. February 4, 2008

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

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

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

Data & Computer Communication

IP - The Internet Protocol

Part 4: Internetworking Using TCP/IP

Concept Questions Demonstrate your knowledge of these concepts by answering the following questions in the space that is provided.

Interconnecting Networks with TCP/IP

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

Chapter 4: Network Layer

Network.... communication system for connecting end- systems. End-systems a.k.a. hosts PCs, workstations dedicated computers network components

CHAPTER-2 IP CONCEPTS

Planning for Information Network

Chapter 5 OSI Network Layer

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

PUCPR. Internet Protocol. Edgard Jamhour E N G L I S H S E M E S T E R

Significance of TCP/IP Model Divya Shree Assistant Professor (Resource Person), Department of computer science and engineering, UIET, MDU, Rohtak

Computer Networks (Introduction to TCP/IP Protocols)

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

Transcription:

PART X Internetworking Part 1 (Concept, IP Addressing, IP Routing, IP Datagrams, Address Resolution) CS422 Part 10 1 Spring 1999

Motivation For Internetworking LANs Low cost Limited distance WANs High cost Unlimited distance CS422 Part 10 2 Spring 1999

Heterogeneity Is Inevitable No single networking technology best for all needs. CS422 Part 10 3 Spring 1999

Universal Service Fundamental concept in networking Pioneered by telephone system Arbitrary pair of computers can communicate Desirable Difficult in a heterogeneous world CS422 Part 10 4 Spring 1999

Heterogeneity And Universal Service Incompatibilities among networks Electrical properties Signaling and data encoding Packet formats Addresses CS422 Part 10 5 Spring 1999

The Bottom Line Although universal service is highly desirable, incompatibilities among network hardware and physical addressing prevent an organization from building a bridged network that includes arbitrary technologies. CS422 Part 10 6 Spring 1999

An Internetwork Begin with heterogeneous network technologies Connect the physical networks Create software to make resulting system appear homogeneous Called an internetwork or internet CS422 Part 10 7 Spring 1999

Connecting Heterogeneous Networks Computer system used Special-purpose Dedicated Works with LAN or WAN technologies Known as * Internet router * Internet gateway CS422 Part 10 8 Spring 1999

Illustration Of An Internet Router Cloud denotes arbitrary network technology One interface per network CS422 Part 10 9 Spring 1999

Important Idea A router can interconnect networks that use different technologies, including different media and media access techniques, physical addressing schemes, or frame formats. CS422 Part 10 10 Spring 1999

Internet Architecture Multiple Networks Routers interconnecting networks Host computer connects to a network Single router has insufficient CPU power and memory I/O capability CS422 Part 10 11 Spring 1999

Internetworking Goal: communication system Seamless Uniform General-purpose Universal Hides heterogeneity from user CS422 Part 10 12 Spring 1999

The Internet Concept net 1 net 2 net 3 net 4 net 5 (a) net 1 net 2 net 3 net 4 router net 5 physical net (b) CS422 Part 10 13 Spring 1999

To Hide Heterogeneity Create virtual network Invent Addressing scheme Naming scheme Implement with Protocol software Note: protocol software needed on both hosts and routers CS422 Part 10 14 Spring 1999

Internet Protocols Known as TCP/IP Many protocols comprise suite Designed to work together Divided into five conceptual layers CS422 Part 10 15 Spring 1999

Layering Used With TCP/IP Application Transport Internet Network Interface Physical LAYER 5 LAYER 4 LAYER 3 LAYER 2 LAYER 1 Note: TCP/IP layering replaces the old ISO model CS422 Part 10 16 Spring 1999

TCP/IP Layers Layer 1: Physical Basic network hardware Layer 2: Network Interface MAC frame format MAC addressing Interface between computer and network (NIC) Layer 3: Internet Facilities to send packets across internet composed of multiple routers CS422 Part 10 17 Spring 1999

Layer 4: Transport TCP/IP Layers (continued) Transport from an application on one computer to application on another Layer 5: Application Everything else CS422 Part 10 18 Spring 1999

Only protocol at Layer 3 Fundamental in suite Defines Internet addressing Internet packet format Internet routing Internet Protocol (IP) CS422 Part 10 19 Spring 1999

IP Addressing Abstraction Independent of hardware addressing Used by Higher-layer protocols Applications CS422 Part 10 20 Spring 1999

IP Address Virtual Only understood by software Used for all communication 32-bit integer Unique value for each host CS422 Part 10 21 Spring 1999

IP Address Assignment An IP address does not identify a specific computer. Instead, each IP address identifies a connection between a computer and a network. A computer with multiple network connections (e.g., a router) must be assigned one IP address for each connection. CS422 Part 10 22 Spring 1999

IP Address Details Divided into two parts Prefix identifies network Suffix identifies host Global authority assigns unique prefix to network Local administrator assigns unique suffix to host CS422 Part 10 23 Spring 1999

Classes Of Addresses Class A bits 0 1 2 3 4 8 16 24 31 0 prefix suffix Class B 1 0 prefix suffix Class C 1 1 0 prefix suffix Class D 1 1 1 0 multicast address Class E 1 1 1 1 reserved for future use Initial bits determine class Class determines boundary between prefix and suffix CS422 Part 10 24 Spring 1999

Dotted Decimal Notation Shorthand for IP address Allows humans to avoid binary Represents each octet in decimal separated by dots NOT the same as names like www.somewhere.com CS422 Part 10 25 Spring 1999

Example Of Dotted Decimal Notation 32-bit Binary Number Equivalent Dotted Decimal 10000001 00110100 00000110 00000000 129. 52. 6. 0 11000000 00000101 00110000 00000011 192. 5. 48. 3 00001010 00000010 00000000 00100101 10. 2. 0. 37 10000000 00001010 00000010 00000011 128. 10. 2. 3 10000000 10000000 11111111 00000000 128. 128. 255. 0 Four decimal values per 32-bit address Each decimal number Represents eight bits Is between 0 and 255 CS422 Part 10 26 Spring 1999

Classes And Network Sizes Address Prefix Max Suffix Max Hosts Class Bits Nets Bits Per Net A 7 128 24 16777216 B 14 16384 16 65536 C 21 2097152 8 256 Maximum network size determined by class of address Class A large Class B medium Class C small CS422 Part 10 27 Spring 1999

Addressing Example router prefix 128.10 prefix 128.211 128.10.0.1 128.10.0.2 128.211.6.115 128.211.28.4 prefix 10 prefix 192.5.48 10.0.0.37 10.0.0.49 192.5.48.3 192.5.48.85 CS422 Part 10 28 Spring 1999

Illustration Of Router Addresses Ethernet 131.108.0.0 131.108.99.5 223.240.129.2 Token Ring 223.240.129.0 223.240.129.17 78.0.0.17 router WAN 78.0.0.0 Address prefix identifies network Need one router address per connection CS422 Part 10 29 Spring 1999

Special Addresses Prefix Suffix Address Type Purpose all-0s all-0s this computer bootstrap network all-0s network network ID network all-1s directed bcast bcast on specified net all-1s all-1s limited bcast bcast on local net 127 any loopback testing Network address not used in packets Loopback never leaves local computer CS422 Part 10 30 Spring 1999

Motivation For IP Packets Because it can connect heterogeneous networks, a router cannot transmit a copy of a frame that arrives on one network across another. To accommodate heterogeneity, an internet must define a hardware-independent packet format. CS422 Part 10 31 Spring 1999

Internet Packets Abstraction Created and understood only by software Contains sender and destination addresses Size depends on data being carried Called IP datagram CS422 Part 10 32 Spring 1999

The Two Parts Of An IP Datagram Header Data Area Header Contains destination address Fixed-size fields Payload Variable size up to 64K No minimum size CS422 Part 10 33 Spring 1999

Datagram Header 0 4 8 16 19 24 31 VERS H. LEN SERVICE TYPE TOTAL LENGTH IDENTIFICATION FLAGS FRAGMENT OFFSET TIME TO LIVE TYPE HEADER CHECKSUM SOURCE IP ADDRESS DESTINATION IP ADDRESS IP OPTIONS (MAY BE OMITTED) PADDING BEGINNING OF DATA. Three key fields Source IP address Destination IP address Type CS422 Part 10 34 Spring 1999

IP Datagram Forwarding Performed by routers Similar to WAN forwarding Table-driven Entry specifies next hop Unlike WAN forwarding Uses IP addresses Next-hop is router or destination CS422 Part 10 35 Spring 1999

Example Of An IP Routing Table 30.0.0.7 40.0.0.8 128.1.0.9 30.0.0.0 40.0.0.0 128.1.0.0 192.4.10.0 40.0.0.7 128.1.0.8 (a) 192.4.10.9 Destination Mask Next Hop 30.0.0.0 255.0.0.0 40.0.0.7 40.0.0.0 255.0.0.0 deliver direct 128.1.0.0 255.255.0.0 deliver direct 192.4.10.0 255.255.255.0 128.1.0.9 (b) Table (b) is for center router in part (a) CS422 Part 10 36 Spring 1999

Routing Table Size Because each destination in a routing table corresponds to a network, the number of entries in a routing table is proportional to the number of networks in an internet. CS422 Part 10 37 Spring 1999

Datagram Forwarding Given a datagram Extract destination address field, D Look up D in routing table Find next-hop address, N Send datagram to N CS422 Part 10 38 Spring 1999

Key Concept The destination address in a datagram header always refers to the ultimate destination. When a router forwards the datagram to another router, the address of the next hop does not appear in the datagram header. CS422 Part 10 39 Spring 1999

IP Semantics IP is connectionless Datagram contains identity of destination Each datagram sent/handled independently Routes can change at any time CS422 Part 10 40 Spring 1999

IP allows datagrams to be Delayed Duplicated Delivered out-of-order Lost Called best effort delivery IP Semantics (continued) Motivation: accommodate all possible networks CS422 Part 10 41 Spring 1999

Resolving Addresses Hardware only recognizes MAC addresses IP only uses IP addresses Consequence: software needed to perform translation Part of network interface Known as address resolution CS422 Part 10 42 Spring 1999

Address Resolution Layer 2 protocol Given A locally-connected network, N IP address C of computer on N Find Hardware address for C Technique Address Resolution Protocol CS422 Part 10 43 Spring 1999

Address Resolution Protocol (ARP) Keep bindings in table Table entry contains pair of addresses for one computer IP address Hardware address Build table automatically as needed CS422 Part 10 44 Spring 1999

ARP Table IP Address Hardware Address 197.15.3.2 0A:07:4B:12:82:36 197.15.3.3 0A:9C:28:71:32:8D 197.15.3.4 0A:11:C3:68:01:99 197.15.3.5 0A:74:59:32:CC:1F 197.15.3.6 0A:04:BC:00:03:28 197.15.3.7 0A:77:81:0E:52:FA Only contains entries for computers on local network IP network prefix in all entries identical CS422 Part 10 45 Spring 1999

ARP Lookup Algorithm Look for target IP address, T, in ARP table If not found Send ARP request message to T Receive reply with T s hardware address Add entry to table Return hardware address from table CS422 Part 10 46 Spring 1999

Illustration Of ARP Exchange V W X Y Z V W X Y Z V W X Y Z W needs Y s hardware address Request sent via broadcast Reply sent via unicast CS422 Part 10 47 Spring 1999

ARP Message Format (For Ethernet) 0 8 16 24 31 HARDWARE ADDRESS TYPE PROTOCOL ADDRESS TYPE HADDR LEN PADDR LEN OPERATION SENDER HADDR (first 4 octets) SENDER HADDR (last 2 octets) SENDER PADDR (first 2 octets) SENDER PADDR (last 2 octets) TARGET HADDR (first 2 octets) TARGET HADDR (last 4 octets) TARGET PADDR (all 4 octets) Length of hardware address fields depend on network type Ethernet uses 48-bit addresses CS422 Part 10 48 Spring 1999

Transmission Of ARP Message In A Frame ARP MESSAGE FRAME HEADER FRAME DATA AREA CRC ARP message sent in payload area of frame Called encapsulation CS422 Part 10 49 Spring 1999

Frame Type Dest. Address Source Address Frame Type Data In Frame 806 complete ARP message Frame type identifies message as ARP Receiver examines frame type CS422 Part 10 50 Spring 1999

Important Note Because ARP software is part of the network interface software, all higher-layer protocols and applications can use IP addresses exclusively, and remain completely unaware of hardware addresses. CS422 Part 10 51 Spring 1999

Summary Internetworking Solves problem of heterogeneity Includes LANs and WANs Internet concept Virtual network Seamless Universal CS422 Part 10 52 Spring 1999

Summary (continued) Internet architecture Multiple networks Interconnected by routers Router Special-purpose computer system Interconnects two or more networks Uses table to forward datagrams CS422 Part 10 53 Spring 1999

Summary (continued) Internet Protocol (IP) Fundamental piece of TCP/IP Defines * Internet addressing * Delivery semantics * Internet packet format (IP datagram) CS422 Part 10 54 Spring 1999

Summary (continued) Address resolution Needed to map IP address to equivalent hardware address Part of network interface Uses table Automatically updates table entries Broadcasts requests CS422 Part 10 55 Spring 1999