IP Datagram Routing and Processing IP Datagram Format IP Datagram Forwarding and Routing Table IP Features Address Resolution Techniques - Table Lookup.

Slides:



Advertisements
Similar presentations
Computer Networks20-1 Chapter 20. Network Layer: Internet Protocol 20.1 Internetworking 20.2 IPv IPv6.
Advertisements

20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
IP Suite© Dr. Ayman Abdel-Hamid, CS4254 Spring CS4254 Computer Network Architecture and Programming Dr. Ayman A. Abdel-Hamid Computer Science Department.
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
CSCI 4550/8556 Computer Networks Comer, Chapter 19: Binding Protocol Addresses (ARP)
CS335 Networking & Network Administration Tuesday, May 11, 2010.
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
Introduction to TCP/IP
ITIS 6167/8167: Network and Information Security Weichao Wang.
Chapter 19 Binding Protocol Addresses (ARP) Chapter 20 IP Datagrams and Datagram Forwarding.
Chapter Overview TCP/IP Protocols IP Addressing.
TCP/IP Essentials A Lab-Based Approach Shivendra Panwar, Shiwen Mao Jeong-dong Ryoo, and Yihan Li Chapter 0 TCP/IP Overview.
1 Chapter Internetworking Part 1 (Concept, IP Addressing, IP Routing, IP Datagrams, Address Resolution.
CEN Network Fundamentals Chapter 19 Binding Protocol Addresses (ARP) To insert your company logo on this slide From the Insert Menu Select “Picture”
G64INC Introduction to Network Communications Ho Sooi Hock Internet Protocol.
The Network Layer. Network Projects Must utilize sockets programming –Client and Server –Any platform Please submit one page proposal Can work individually.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 03_a
FALL, 2005CSI Part 2.3 Internetworking & Addressing (Concept, IP Addressing, IP Routing, IP Datagrams, Address Resolution Robert L. Probert, SITE,
Chapter 15 - Internetworking Motivation Universal service Internetworking Routers Internet architecture Routers in an organization A virtual network A.
Fall 2005Computer Networks20-1 Chapter 20. Network Layer Protocols: ARP, IPv4, ICMPv4, IPv6, and ICMPv ARP 20.2 IP 20.3 ICMP 20.4 IPv6.
Protocols 1 Objective: Build a protocol foundation for Client / Server programming in an Internet Environment Note: RFCs available from
Dr. John P. Abraham Professor UTPA
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Chapter 19 - Binding Protocol Addresses
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
1 Java EE Programming Internetworking. 2 Motivation for Internetworking LAN technologies provide high speed communication across short distances WAN technologies.
Chapter 19 Binding Protocol Addresses (ARP) A frame transmitted across a physical network must contain the hardware address of the destination. Before.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
Internet Application Theory & Applications. Internet Application - Ibrahim Otieno SCI/ICT Building 2 nd Floor Rm.
1 Chapter 8 – TCP/IP Fundamentals TCP/IP Protocols IP Addressing.
Lecture 4 Overview. Ethernet Data Link Layer protocol Ethernet (IEEE 802.3) is widely used Supported by a variety of physical layer implementations Multi-access.
Internet Protocol: Routing IP Datagrams Chapter 8.
1 IP Datagrams And Datagram Forwarding. 2 Motivation For IP Packets Because it can connect heterogeneous networks, a router cannot transmit a copy of.
CSC 600 Internetworking with TCP/IP Unit 5: IP, IP Routing, and ICMP (ch. 7, ch. 8, ch. 9, ch. 10) Dr. Cheer-Sun Yang Spring 2001.
1 Kyung Hee University Chapter 8 ARP(Address Resolution Protocol)
1 Bus topology network. 2 Data is sent to all computers, but only the destination computer accepts 02608c
Linux Operations and Administration Chapter Eight Network Communications.
Mapping IP Addresses to Hardware Addresses Chapter 5.
1 Computer Communication & Networks Lecture 19 Network Layer: IP and Address Mapping Waleed Ejaz.
CS470 Computer Networking Protocols Huiping Guo Department of Computer Science California State University, Los Angeles 4. Internetworking.
1 Internetworking: IP Packet Switching Reading: (except Implementation; pp )
1 Binding Protocol Addresses (ARP ). 2 Resolving Addresses Hardware only recognizes MAC addresses IP only uses IP addresses Consequence: software needed.
TCP/IP PROTOCOL UNIT 6. Overview of TCP/IP Application FTP, Telnet, SMTP, HTTP.. Presentation Session TransportHost-to-HostTCP, UDP NetworkInternetIP,
Network Layer Protocols COMP 3270 Computer Networks Computing Science Thompson Rivers University.
Lecture 13 IP V4 & IP V6. Figure Protocols at network layer.
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
IP: Addressing, ARP, Routing
COMPUTER NETWORKS CS610 Lecture-27 Hammad Khalid Khan.
COMPUTER NETWORKS CS610 Lecture-28 Hammad Khalid Khan.
Scaling the Network: The Internet Protocol
CS4470 Computer Networking Protocols
Chapter 8 ARP(Address Resolution Protocol)
Objective: ARP.
Internetworking & Address Resolution
Net 323: NETWORK Protocols
CS 457 – Lecture 10 Internetworking and IP
Chapter 20 Network Layer: Internet Protocol
Dr. John P. Abraham Professor UTPA
Chapter 20 Network Layer: Internet Protocol
Dr. John P. Abraham Professor UTRGV, EDINBURG, TX
Dr. John P. Abraham Professor UTPA
Net 323 D: Networks Protocols
CS4470 Computer Networking Protocols
Scaling the Network: The Internet Protocol
Introduction to Networks
Ch 17 - Binding Protocol Addresses
ITIS 6167/8167: Network and Information Security
16EC Computer networks unit II Mr.M.Jagadesh
NET 323D: Networks Protocols
Presentation transcript:

IP Datagram Routing and Processing IP Datagram Format IP Datagram Forwarding and Routing Table IP Features Address Resolution Techniques - Table Lookup - Close-form computation - Dynamic Message Exchange ARP - Address Resolution Protocol ARP Message Format Internet History and Standard Administration IP Datagram Format IP Datagram Forwarding and Routing Table IP Features Address Resolution Techniques - Table Lookup - Close-form computation - Dynamic Message Exchange ARP - Address Resolution Protocol ARP Message Format Internet History and Standard Administration Lecture 9

Host, Hop, Router and Routing Lecture 9

Problems in IP Datagram Transfer Problems in IP datagram transfer: - What is IP datagram header format? - How to forward IP datagram from one router to another? - How to transfer IP datagram across physical network? - How to process large IP datagram to adapt physical network? - How to find and report errors in IP datagram transfer? network router Source host Sender Destination host Receiver IP datagram: - Packet used in Internet protocol (IP) - Generated by source, forwarded by routers and received by destination - Created, processed and understood by software IP D IP Header Source/Dest. Addresses, etc. IP Data Payload IP Datagram: 64KByets in maximum

IP Datagram Lecture 9 IP Datagram

IP Datagram Format VERS: 0100 (IPv4), Service Type: priority, reliability,… Total Length: < 2 16 (with header) H.LEN: header length in 4-bytes, the minimum = 20 bytes when H.LEN=5 IDENT, FLAGS, FRAGMENT OFFSET - used with fragmentation Time To Live (TTL): 1~255 integer, number of routers a datagram can pass Type: upper layer protocol: TCP=6, UDP=17, ICMP=1, IGMP=2, IPv6=41 Lecture 9 HeaderData Payload 20 ~ 60 Bytes Maximum 64K Bytes 1 st 32bits/ 4bytes 2 nd 32bits/ 4bytes 3 rd 32bits/ 4bytes 4 th 32bits/ 4bytes 5 th 32bits/ 4bytes 6 th 32bits/ 4bytes

Lecture 9 IP Datagram Routing Table Concept Routing Tables for Routers 1-5

Lecture 9 IP Datagram Forwarding and Routing Table IP Datagram Forwarding: - Performed by routers - Similar to WAN forwarding using switching - Table-driven - Entry specifies next hop - Unlike WAN forwarding - Uses IP addresses - Next-hop is a router or destination - Use default route to keep a routing table small

Lecture 9 IP Datagram Forwarding and Routing Table Process of IP Datagram Forwarding: - Receive a datagram - Extract destination address field, D - Calculate network ID from D using mask M: D & M - Look up ID in routing table - Find next-hop address, N - Send the datagram to N Default route entry may exist !! Utilities: ipconfig, route, netstat  Please try them!! An Animation of forwarding an IP datagram

Lecture 9 IP Features IP is connectionless - Datagram contains identity of destination - Each datagram sent/handled independently Routers can change at any time IP allows datagrams to be - Delayed - Lost - Duplicated - Delivered out-of-order Called best effort delivery Motivation: accommodate all possible networks Sender Receiver D5D4D3D2D1D5D4D3D2D1 D5D5D2D3D1D5D5D2D3D1 Internet

Lecture 9 Resolving Addresses - IP datagram is sent, forwarded or delivered using IP address across physical network - Physical network does not understand protocol IP address - Consequence: translation from IP address to network hardware/MAC address - to transfer a packet across a physical network - such translation is needed for each physical network e.g., from A to F: 1) A finds R1 addr., 2) R1 finds R2 addr., 3) R2 finds F addr. - Address Resolution (AR) - Given a network N and IP address IPAddr of computer on N - Find the hardware address HAddr /MAC corresponding to the IPAddr R1 Hardware Addr? R2 Hardware Addr? F Hardware Addr?

Lecture 9 Address Resolution Techniques - Association between a protocol address and a hardware address is called binding - Three techniques: Table lookup - Bindings stored in memory with protocol address as key - Data link layer looks up protocol address to find hardware address Closed-form computation - Protocol address based on hardware address - Data link layer derives hardware address from protocol address Dynamic message exchange - Network messages used for "just-in-time" resolution - Data link layer sends message requesting hardware address - Destination responds with its hardware address

Lecture 9 Table Lookup Resolution - Use a simple list containing IP address and hardware address for each host on net - Search on IP address and extract corresponding hardware address - Note that all IP addresses have same prefix (netID); can save space by dropping prefix and use suffix (hostID) only.

Lecture 9 Closed-form Computation - If hardware technology uses small, configurable hardware address, network administrator can choose hardware address based on IP address - Example - hardware uses one octet address that can be configured - Simply choose hardware address to be hostid - Now, any host can determine hardware address as: hardware_address = ip_address & 0xff - IPv4 cannot use this approach! - IPv6 adopts this approach.

Lecture 9 Dynamic Resolution and Comparison - Use ‘network ‘ to resolve IP addresses - Message exchange with other computer(s) returns hardware address to source - Two designs: - Centralized or Server-based - computer sends message to a server to resolve address easier to manage, used on non-broadcast media (e.g., ATM) - Distributed - all computers participate; destination provides hardware address to host requires no dedicated computers, no administration T: Table Lookup, C: Close-form Computation, D: Dynamic Message Exchange IP DRC Video IP DRC Video

Lecture 9 ARP - Address Resolution Protocol - Address Resolution Protocol (ARP) - part of IP protocol suite - Two-part protocol - Request from source asking for hardware address - Reply from destination providing hardware address Step 1: - Make a request ARP message - Broadcast requested IP add. Step 2: Compare the IP with own Step 3: - Make a reply ARP message - Y replies its hardware add. IP add HW add ARP

Lecture 9 ARP Message Flow Source Destination IP_Add, Hard_Addr IP Address request message Type=806 Hardware Address reply Type= bits (6 bytes) unique address - Broadcast address: all 1s address - Type=800  IPv4 D, 806  ARP Msg Ethernet Frame Type=800

Lecture 9 ARP Example for Ethernet - ARP request message dropped into hardware frame and broadcast, for Ethernet | BC-Addr (all 1) | Sender.HAddr |806| Request ARP Message (IPAddr) | Uses separate protocol type in hardware frame (Ethernet = 806) - Sender inserts IP address IPAddr into message and broadcast - Every other computer examines the request - Computer with requested IP address responds - Puts hardware address in response - Unicasts to sender, for Ethernet | Sender.HAddr | Dest.HAddr | 806 | Reply ARP Message (HAddr) | Original requester can then extract hardware address & send IP packet to destination | Dest.HAddr | Sender.HAddr | 800 | IP Datagram (Packet) | Frame type 800  Frame payload is an IP datagram

Lecture 9 ARP Message Format - HARDWARE ADDRESS TYPE = 1 for Ethernet - PROTOCOL ADDRESS TYPE = 0x0800 for IP - HARDWARE ADDRESS LENGTH = 6 for Ethernet - PROTOCOL ADDRESS LENGTH = 4 for IPv4 - OPERATION = 1 for request, 2 for response - Contains both target and sender mappings from IP address to hardware address - Request sets hardware address of target to 0 - Target can extract hardware address of sender (saving an ARP request) - Target exchanges sender/target in response

Lecture 9 Sending, Caching and Processing ARP Message - Sender constructs ARP message - ARP message carried as data in hardware frame - encapsulation Using ARP for each IP packet adds two packets of overhead for each IP packet - Computer caches ARP responses in local ARP cache/table - Flushes cache at system startup; and Entries discarded periodically - Cache searched prior to sending ARP request - Receiver extracts sender's hardware address and updates local ARP table - Receiver checks operation - request or response - Response: - Adds sender's address to local cache - Sends pending IP packet(s) - Request: - If receiver is target, forms response - Unicasts to sender - Adds sender's address to local cache - Note: - Target likely to respond "soon" - Computers have finite storage for ARP cache - Only target adds sender to cache; others only update if target already in cache - arp utility ARP in Wikipedia Address_Resolution_Protocol How ARP Works - Animation How ARP Works - Animation

Lecture 9 Internet History - Internet concept (originally called ‘catenet’ developed in conjunction with TCP/IP) - (1967) Initially funded through ARPA - Advanced Research Project Agecy in the Department of Defense (DoD) - (1969) Four-node ARPANET established - Univ. of California at Los Angeles (UCLA) - Univ. of California at Santa Barbara (UCSB) - Stanford Research Institute (SRI) - Univ. of Utah - Network Control Protocol - NCP - (1973) Cerf and Kaha proposed NCP, TCP/IP suite development begins - (1977) An internet tested using TCP/IP (ARPANET, packet radio and packet satellite) - (1978) UNIX distributed to academic/research sites - (1981) CSNET established, sponsored by National Science Foundation (NSF) without relation with DARPA - Most CS departments in US universities connected to CSNET by the middle of 1980s - (1983) TCP/IP becomes the official protocol of ARPANET for nonmilitary users - (1983) MILNET was born - (1986) NSFNET established - using T1 - replaced ARPANET in went back to a research network in (1991) ANSNET by IBM, Merit and MCI - Since then rapid progress, wide spread in the world - Current Internet protocol is IPv4, next generation is IPv6 or another (?) More about Internet history at Leonard KleinrockVinton CerfRobert Kahn

Lecture 9 Internet Standard Administration - ISOC (Internet Society): nonprofit organization formed in 1992 to provided support for the Internet standard process - IAB (Internet Architecture Board): technical advisor and the external liaison, 13 voting members - IRTF (Internet Research Task Force): long-term research, divided by many research groups (RG) - IETF (Internet Engineering Task Force): forum of working groups for various areas in Internet 1. Applications Area 2. General Area 3. Internet Area 4. Operations and Management Area 5. Routing Area 6. User Services Area 7. Transport Area 8. Security Area - RFC Editor and IANA (Internet Assigned Numbers Authority): manage and publish RFC (Request for Comment) and IP addresses IETF Wikipedia _Engineering_Task_Force IETF website

Exercise 9 Page 1 1. Give the main features of IP (Internet Protocol). 2. An IP datagram has arrived with the following information in the header (in hexadecimal): C 4E B4 0E 0F 02 a. Are there any options? b. What is the size of the data? c. How many more routers can the packet travel to? d. What is the identification number of the packet? e. What is the type of upper layer protocol? 3. Suppose the network of an organization is shown in the following figure. Give a routing table of router R1. Note: There are five problems in this exercise written in two pages! / / / /25 R1R4 R2 R3 H1 Outside Internet

Exercise 9 Page 2 4. How many responses does a computer expect to receive when it broadcasts an ARP request? Why? How does a computer (attached an Ethernet) know whether an arriving frame contains an IP datagram or an ARP message? 5. Order the following ARP events correctly. a. Host in procession of IP address sends computer physical address b. Transmission of data to correct host c. IP address is broadcast d. IP address and computer address stored in cache memory