Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1-1 Internetworking: addressing, forwarding, resolution, fragmentation Shivkumar Kalyanaraman Rensselaer.

Slides:



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

CE363 Data Communications & Networking Chapter 7 Network Layer: Internet Protocol.
CSE 461: IP/ICMP and the Network Layer. Next Topic  Focus:  How do we build large networks?  Introduction to the Network layer  Internetworks  Service.
CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 5-1 Internet Protocol (IP): Packet Format, Fragmentation, Options Shivkumar Kalyanaraman Rensselaer.
Network Layer Packet Forwarding IS250 Spring 2010
IP Suite© Dr. Ayman Abdel-Hamid, CS4254 Spring CS4254 Computer Network Architecture and Programming Dr. Ayman A. Abdel-Hamid Computer Science Department.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Address Resolution (ARP, RARP) Shivkumar Kalyanaraman Rensselaer Polytechnic Institute
Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar 1 ECSE-4670: Computer Communication Networks (CCN) Network Layer Shivkumar.
1 Internetworking Outline Best Effort Service Model Global Addressing Scheme.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-6961:Internet Protocols Quiz 1: Solutions Time: 60 min (strictly enforced) Points: 50 YOUR.
11- IP Network Layer4-1. Network Layer4-2 The Internet Network layer forwarding table Host, router network layer functions: Routing protocols path selection.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-6961:Internet Protocols Quiz 1 Time: 60 min (strictly enforced) Points: 50 YOUR NAME: Be.
Shivkumar KalyanaramanRensselaer Q1-1 ECSE-6600: Internet Protocols Quiz 1 Time: 60 min (strictly enforced) Points: 50 YOUR NAME: Be brief, but DO NOT.
CS335 Networking & Network Administration Tuesday, May 11, 2010.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Internetworking: addressing, forwarding, resolution, fragmentation Shivkumar Kalyanaraman Rensselaer.
CSCI 4550/8556 Computer Networks Comer, Chapter 20: IP Datagrams and Datagram Forwarding.
Internetworking: addressing, forwarding, resolution, fragmentation
Extending Networks. Three Levels of Extension Physical Layer –Repeaters Link Layer –Bridges –Switches Network –Routers: “Connecting networks”
Chapter 19 Binding Protocol Addresses (ARP) Chapter 20 IP Datagrams and Datagram Forwarding.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Internet Protocol (IP): Addressing and Forwarding Shivkumar Kalyanaraman Rensselaer Polytechnic.
CMPE 80N - Introduction to Networks and the Internet 1 CMPE 80N Winter 2004 Lecture 18 Introduction to Networks and the Internet.
IP Routing, Format, Fragmentation Chapters 20-21, 23.
1 TCOM 509 – Internet Protocols (TCP/IP) Lecture 02_b Instructor: Dr. Li-Chuan Chen Date: 09/08/2003 Based in part upon slides of Prof. J. Kurose (U Mass),
1 Kyung Hee University Part 4 : Network Layer. 2 Kyung Hee University Role and Position of Network Layer o Network layer in the Internet model is responsible.
IP (Internet Protocol) –the network level protocol in the Internet. –Philosophy – minimum functionality in IP, smartness at the end system. –What does.
IP tutorial – #1 KAIST Dept. of CS NC Lab..
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
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Internet Control Message Protocol (ICMP) Shivkumar Kalyanaraman Rensselaer Polytechnic Institute.
Cisco – Chapter 11 Routers All You Ever Wanted To Know But Were Afraid to Ask.
TCP/IP Essentials A Lab-Based Approach Shivendra Panwar, Shiwen Mao Jeong-dong Ryoo, and Yihan Li Chapter 5 UDP and Its Applications.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-6600: Internet Protocols Informal Quiz #03 SOLUTIONS Shivkumar Kalyanaraman: GOOGLE: “Shiv.
10/13/2015© 2008 Raymond P. Jefferis IIILect 07 1 Internet Protocol.
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.
Chapter 81 Internet Protocol (IP) Our greatest glory is not in never failing, but in rising up every time we fail. - Ralph Waldo Emerson.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
1 Chapter 21 Internetworking Part 2 (Datagram Encapsulation, Transmission, Fragmentation, Reassembly)
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Communications Services Connection Oriented Service  A connection is established  Data is sent or received over this connection  Connection may be terminated.
Network Layer4-1 The Internet Network layer forwarding table Host, router network layer functions: Routing protocols path selection RIP, OSPF, BGP IP protocol.
Internet Protocols (chapter 18) CSE 3213 Fall 2011.
Network Layer4-1 Datagram networks r no call setup at network layer r routers: no state about end-to-end connections m no network-level concept of “connection”
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets, 5e By Douglas E. Comer Lecture PowerPoints.
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.
Network Layer by peterl. forwarding table routing protocols path selection RIP, OSPF, BGP IP protocol addressing conventions datagram format packet handling.
The Internet Network layer
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
1 Chapter 4: Internetworking (Internet Protocol) Dr. Rocky K. C. Chang 16 March 2004.
1 Internetworking: IP Packet Switching Reading: (except Implementation; pp )
IP Protocol CSE TCP/IP Concepts Connectionless Operation Internetworking involves connectionless operation at the level of the Internet Protocol.
COMPUTER NETWORKS CS610 Lecture-30 Hammad Khalid Khan.
1 COMP 431 Internet Services & Protocols The IP Internet Protocol Jasleen Kaur April 21, 2016.
IP Internet Protocol. IP TCP UDP ICMPIGMP ARP PPP Ethernet.
Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Introduction to Networks
Computer Communication Networks
CS 457 – Lecture 10 Internetworking and IP
Internetworking Outline Best Effort Service Model
Wide Area Networks and Internet CT1403
Net 323 D: Networks Protocols
Chapter 15. Internet Protocol
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute
Introduction to Networks
Address Resolution (ARP, RARP)
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute
ECSE-4670: Computer Communication Networks (CCN)
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute
Presentation transcript:

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1-1 Internetworking: addressing, forwarding, resolution, fragmentation Shivkumar Kalyanaraman Rensselaer Polytechnic Institute Based in part upon the slides of Prof. Raj Jain (OSU), S. Keshav (Cornell), L. Peterson (Arizona)

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1-2 q Internetworking: heterogeneity & scale q IP solution: q Provide new packet format and overlay it on subnets. q Implications: Hierarchical address, address resolution, fragmentation/re-assembly, packet format design, forwarding algorithm etc Overview

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1-3 The Internetworking Problem q Two nodes communicating across a “network of networks”… How to transport packets through this heterogeneous mass ? q Problems: heterogeneity and scaling q Solution: Overlay model: New IP protocol, best-effort forwarding, address hierarchy, address resolution, fragmentation q Alternative: translation (eg: bridges) or hybrid protocol (eg: MPLS used instead IP/ATM overlays) AB

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1-4 How does IP forwarding work ? q A) Source & Destination in same network q Recognize that destination IP address is on same network. [1] q Find the destination LAN address. [2] q Send IP packet encapsulated in LAN frame directly to the destination LAN address. q Encapsulation => source/destination IP addresses don’t change

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1-5 IP forwarding (contd) q B) Source & Destination in different networks q Recognize that destination IP address is not on same network. [1] q Look up destination IP address in a (routing) table to find a match, called the next hop router IP address. q Send packet encapsulated in a LAN frame to the LAN address corresponding to the IP address of the next-hop router. [2]

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1-6 Addressing & Resolution q [1] How to find if destination is in the same network ? q IP address = network ID + host ID. Source and destination network IDs match => same network q Splitting address into multiple parts is called hierarchical addressing q [2]: How to find the LAN address corresponding to an IP address ? q Address Resolution Problem. q Solution: ARP, RARP

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1-7 IP Address Formats q Class A: NetworkHost0 7124bits NetworkHost bits q Class B: NetworkHost bits q Class C: Router Multicast Group addresses bits q Class D: q Class E: Reserved.

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1-8 Subnet Addressing q Classful addressing inefficient: Everyone wants class B addresses q Can we split class A, B addresses spaces and accommodate more networks ? q Need another level of hierarchy. Defined by “subnet mask”, which is general specifies the sets of bits belonging to the network address and host address respectively q External routers send to “network” specified by the “network ID” and have smaller routing tables NetworkHost Boundary is flexible, and defined by subnet mask

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1-9 Subnet Addressing (Contd) q Internal routers & hosts use subnet mask to identify “subnet ID” and route packets between “subnets” within the “network”. q Eg: Mask: => subnet ID = 8 bits with upto 62 hosts/subnet q Route table lookup: q IF ((Mask[i] & Destination Addr) = = Destination[i]) Forward to NextHop[i]

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1-10 Addressing and Forwarding Summary q Addressing: q Unique IP address per interface q Classful (A,B,C) => address allocation not efficient q Hierarchical => smaller routing tables q Provision for broadcast, multicast, loopback addresses q Subnet masks allow “subnets” within a “network” => improved address allocation efficiency q Problem: Host moves between networks => IP address changes.

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1-11 Addressing/Forwarding Summary(contd) q Forwarding: q Simple “next-hop” forwarding. q Last hop forwards directly to destination q Best-effort delivery : No error reporting. Delay, out-of-order, corruption, and loss possible => problem of higher layers! q Forwarding vs routing: Routing tables setup by separate algorithm (s)

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1-12 IP Features q Connectionless service q Addressing q Data forwarding q Fragmentation and reassembly q Supports variable size datagrams q Best-effort delivery: Delay, out-of-order, corruption, and loss possible. Higher layers should handle these. q Provides only “Send” and “Delivery” services Error and control messages generated by Internet Control Message Protocol (ICMP)

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1-13 What IP does NOT provide q End-to-end data reliability & flow control (done by TCP or application layer protocols) q Sequencing of packets (like TCP) q Error detection in payload (TCP, UDP or other transport layers) q Error reporting (ICMP) q Setting up route tables (RIP, OSPF, BGP etc) q Connection setup (it is connectionless) q Address/Name resolution (ARP, RARP, DNS) q Configuration (BOOTP, DHCP) q Multicast (IGMP, MBONE)

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1-14 IP Datagram Format VersH LenTOSTotal Length IdentificationFlags Time to liveProtocolHeader Checksum Fragment Offset Source IP Address Destination IP Address IP Options (if any)Padding Data

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1-15 Maximum Transmission Unit q Each subnet has a maximum frame size Ethernet: 1518 bytes FDDI: 4500 bytes Token Ring: 2 to 4 kB q Transmission Unit = IP datagram (data + header) q Each subnet has a maximum IP datagram length (header + payload) = MTU S S R R Net 1 MTU=1500 Net 2 MTU=1000 R R

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1-16 Fragmentation q Datagrams larger than MTU are fragmented q Original header is copied to each fragment and then modified (fragment flag, fragment offset, length,...) q Some option fields are copied (see RFC 791) IP HeaderOriginal Datagram IP Hdr 1Data 1IP Hdr 3Data 3IP Hdr 2Data 2

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1-17 Reassembly q Reassembly only at the final destination q Partial datagrams are discarded after a timeout q Fragments can be further fragmented along the path. Subfragments have a format similar to fragments.  Minimum MTU along a path  Path MTU Net 1 MTU=1500 Net 3 MTU=1500 R2 S S D D Net 2 MTU=1000 R1

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1-18 Further notes on Fragmentation q Performance: single fragment lost => entire packet useless. Waste of resources all along the way. Ref: Kent & Mogul, 1987 q Don’t Fragment (DF) bit set => datagram discarded if need to fragment. ICMP message generated: may specify MTU (default = 0) q Used to determine Path MTU (in TCP & UDP) q The transport and application layer headers do not appear in all fragments. Problem if you need to peep into those headers.

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1-19 Address Resolution q Indirection through addressing/naming => requires resolution q Problem usually is to map destination layer N address to its layer N-1 address to allow packet transmission in layer N-1. q 1. Direct mapping: Make the physical addresses equal to the host ID part. q Mapping is easy. q Only possible if admin has power to choose both IP and physical address. q Ethernet addresses come pre-assigned (so do part of IP addresses!). q Ethernet addresses are 48 bits vs IP addresses which are 32- bits.

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1-20 ARP techniques (contd) q 2: Table Lookup: Searching or indexing to get MAC addresses q Similar to lookup in /etc/hosts for names q Problem: change Ethernet card => change table q 3. Dynamic Binding: ARP q The host broadcasts a request: “What is the MAC address of ?” q The host whose IP address is replies back: “The MAC address for is 8A-5F-3C ” q All three methods are allowed in TCP/IP networks. RE

Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1-21 Summary q IP header: supports connectionless delivery, variable length pkts/headers/options, fragmentation, reassembly, path MTU discovery q New forwarding algorithm, ARP for address resolution