1 Internetworking: IP Packet Switching Reading: 4.1.1 - 4.1.7 (except Implementation; pp. 245-250 )

Slides:



Advertisements
Similar presentations
Ch 20. Internet Protocol (IP) Internetworking PHY and data link layers operate locally.
Advertisements

Computer Networks20-1 Chapter 20. Network Layer: Internet Protocol 20.1 Internetworking 20.2 IPv IPv6.
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
IPv4 - The Internet Protocol Version 4
CSE 461: IP/ICMP and the Network Layer. Next Topic  Focus:  How do we build large networks?  Introduction to the Network layer  Internetworks  Service.
1 IP - The Internet Protocol Relates to Lab 2. A module on the Internet Protocol.
CSCI 4550/8556 Computer Networks Comer, Chapter 23: An Error Reporting Mechanism (ICMP)
CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
1 Internetworking Outline Best Effort Service Model Global Addressing Scheme.
Spring 2003CS 4611 Internetworking COS 461 Spring 2003.
CSE331: Introduction to Networks and Security Lecture 7 Fall 2002.
CS335 Networking & Network Administration Tuesday, May 11, 2010.
CS Internetworking Slide Set 8. In this set... Addressing Datagram forwarding.
1 ELEN Lecture 13 LAN Bridges Routers, Switches, Gateways Network layer -IP Reading: 6.7,
Spring 2002CS 4611 Internetworking Outline Best Effort Service Model Global Addressing Scheme.
26-Aug-154/598N: Computer Networks Recap SBC UUNET Comcast Sprint End Users Internet First mile problem Last mile problem.
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.
Module 10. Internet Protocol (IP) is the routed protocol of the Internet. IP addressing enables packets to be routed from source to destination using.
CS 6401 Internet Protocol Outline Introduction to Internet Protocol Header and address formats ICMP Tools.
ICMP (Internet Control Message Protocol) Computer Networks By: Saeedeh Zahmatkesh spring.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Network Layer ICMP and fragmentation.
G64INC Introduction to Network Communications Ho Sooi Hock Internet Protocol.
1 Introduction to Computer Networks University of Ilam By: Dr. Mozafar Bag-Mohammadi Internetworking.
Fall 2010CMSC 1501 Internetworking. Fall 2010CMSC 1502 Assumptions Data pipe from every machine to every other machine. –Need not be single link (and.
A Review of Evolving Network Technology Ethernet & IP J.J. Ekstrom March 2008.
IP : Internet Protocol Addresses Rsc.Asst.Kamil Serhan Bilman
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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.
1 IP : Internet Protocol Computer Network System Sirak Kaewjamnong.
Univ. of TehranIntroduction to Computer Network1 An Introduction Computer Networks An Introduction to Computer Networks University of Tehran Dept. of EE.
Dr. John P. Abraham Professor UTPA
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.
CS4550 Computer Networks II IP : internet protocol, part 2 : packet formats, routing, routing tables, ICMP read feit chapter 6.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
CSS432: Internetworking 1 CSS432 Internetworking Textbook Ch4.1 Professor: Munehiro Fukuda Augmented by Rob Nash.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 21.
Fall, 2001CS 6401 Switching, Internet Protocol Outline Quiz 2 Solution Crossbar switch design Knockout switch design Introduction to Internet Protocol.
Spring 2010CS 3321 Chapter 4: Internetworking. Spring 2010CS 3322 Assumptions Data pipe from every machine to every other machine. –Need not be single.
CS 4396 Computer Networks Lab
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 Computer Communication & Networks Lecture 19 Network Layer: IP and Address Mapping Waleed Ejaz.
1 Chapter 4: Internetworking (Internet Protocol) Dr. Rocky K. C. Chang 16 March 2004.
CSS432 Basic Internetworking Textbook Ch3.2
Univ. of TehranIntroduction to Computer Network1 An Introduction Computer Networks An Introduction to Computer Networks University of Tehran Dept. of EE.
1 Internetworking Outline Best Effort Service Model Global Addressing Scheme.
Network Layer Protocols COMP 3270 Computer Networks Computing Science Thompson Rivers University.
Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Packet Switch Network Server client IP Ether IPTCPData.
2002 년 2 학기인터넷통신망 년 2 학기. 인터넷통신망 2 Acknowledgement Some figures and texts are from: –Govindan –Kurose –Peterson & Davie –Huitema –Halabi –Retana,
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
IP - The Internet Protocol
Scaling the Network: The Internet Protocol
IP - The Internet Protocol
IP - The Internet Protocol
CS 457 – Lecture 10 Internetworking and IP
IP - The Internet Protocol
Advanced Computer Networks
IP : Internet Protocol Surasak Sanguanpong
Internetworking Outline Best Effort Service Model
Chapter 20 Network Layer: Internet Protocol
IP - The Internet Protocol
2. Fragmentation and Reassembly
Net 323 D: Networks Protocols
IP - The Internet Protocol
Introduction to Computer Networks
Scaling the Network: The Internet Protocol
Advanced Computer Networks
ITIS 6167/8167: Network and Information Security
IP - The Internet Protocol
Presentation transcript:

1 Internetworking: IP Packet Switching Reading: (except Implementation; pp )

2 Terminology ii“internetwork”, internet: an arbitrary collection of physical networks interconnected to provide some sort of host- to-host packet delivery service –interconnect physical networks (e.g. Ethernets, FDDIs, ATMs, PPP,..) form a logical network (an internet) IInternet: widely used, global internetwork to which a large percentage of networks are now connected Learn the principles of internetworking –illustrate ideas with real-world examples from Internet

3 Network of “Single Technology Networks” Internet Protocol, IP: a tool used to build scalable, heterogeneous internetwork –net 1, net 2 : Ethernets –net 3: FDDI –net 4: point-to-point link –R1, R2, R3: routers for interconnection

4 Service Model Connectionless (datagram-based) Best-effort delivery (unreliable service to transport {or other higher} layer protocols) –packets are lost –packets are delivered out of order –duplicate copies of a packet are delivered –packets can be delayed for a long time

5 Packet Format: 20 to 24 byte Header I 1.Version 2.HLen: length of header in 32-bit words 3.TOS, Type of Service: allow packets to be treated differently based on application needs 4.Length: bytes of datagram (including header, max 65,535) 5.Indent, Offset, Flag: information used for fragmentation

6 Packet Format: 20 to 24 byte Header II 6.TTL, time to live: discard looping packets; 64 is the current default 7.Protocol: higher-level protocol (TCP = 6, UDP =17, …) 8.Checksum: calculated for IP header considered as a sequence of 16-bit words 9.SourceAddr, DestinationAddr: IP defines its own global address space, independent of physical networks 10.Options, Pad: rarely use

7 Fragmentation and Reassembly Each physical network has some maximum transmission unit (MTU). –Examples Ethernet packets up to 1500 bytes FDDI packets up to 4500 bytes Fragmentation and Reassembly Design Decisions: 1.try to avoid fragmentation at source host –source host chooses size of IP datagram equals to MTU of physical network to which it is directly attached –if transport protocol gives IP a packet larger than local MTU, then source host fragments it 2.fragment when necessary –whenever the path to destination includes a network with MTU < Datagram

8 Design Decisions (cont.) 3.re-fragmentation is possible –a router wants to forward a datagram over a network with MTU < received datagram 4.fragments are self-contained datagrams 5.delay reassembly until destination host –fragments carry same identifier in Ident Ident chosen by sending host unique among datagrams that might arrive at destination from source over some reasonable time period 6.do not recover from lost fragments –If all fragments do not arrive at receiving host, it discards fragments that arrived

9 Example 4500 MTU1500 MTU 532 MTU IP on H1 wants to send to H8 a 1420-byte packet (20-byte IP header plus 1400 bytes of data) R2 must fragment the packet before routing it to RT3 MTU of net2 = 1500 byte MTU of net3 = 4500 byte MTU of net4 = 532 byte MTU of net4 = 1500 byte

10 Example (continued) (a) Ident = x Start of header Rest of header 1400 data bytes Offset = 00 (b) Ident = x Start of header Rest of header 512 data bytes Offset = 01 Ident = x Rest of header 512 data bytes Offset = 641 Start of header Ident = x Start of header Rest of header 376 data bytes Offset = MTU 1500 MTU 532 MTU 1420-byte datagram (20-byte IP header plus 1400 bytes of data) First fragment M bit 1 in the Flags field (more fragments to follow) Offset 0 (fragment contains first part of original datagram) Second fragment starts with the 513th byte Offset field in header set to 64, which is 512/8 fragmentation is done on 8-byte boundaries Offset field counts 8-byte chunks Third fragment contains last 376 bytes offset (2 x 512)/ 8 = 128 M bit is 0 (b) (a)

11 Global Addresses Although globally unique, Ethernet addresses have no structure to provide clues to routing protocols IP addresses: 32 bits –globally unique (4,294,967,296 possible addresses) –hierarchical: network + host Dot Notation – – –

12 IP addresses (cont. I) The original idea was that the Internet would consist of a)a small number of wide area networks (these would be class A networks), 126 Yes. Yes. Yes. Yes. Yes. Yes. Yes.\ Yes. Yes. Yes. Yes. Yes. Yes. Yes class A networks (the values 0 and 127 are reserved) 2.each class A network accommodate up to (about 16 million) hosts (again, there are two reserved values)

13 IP addresses (cont. II) The original idea was that the Internet would consist of a)a small number of wide area networks (these would be class A networks), 126 b)a modest number of site- (campus-) sized networks (these would be class B networks) 65,534 hosts /network Yes. Yes. Yes. Yes. Yes. Yes. Yes.\ Yes. Yes. Yes. Yes. Yes. Yes. Yes.

14 IP addresses (cont. III) The original idea was that the Internet would consist of a)a small number of wide area networks (these would be class A networks), 126 b)a modest number of site- (campus-) sized networks (these would be class B networks) 65,534 hosts /network c)a large number of LANs (these would be class C networks) 254 hosts/LAN 255 reserved for broadcast 0 not a valid host number

15 Datagram Forwarding Strategy every datagram contains destination’s address if router is connected to destination network, then forward to host if not directly connected, then forward to some router forwarding table maps network number into next hop (router) each host has a default router each router maintains a forwarding table

16 Datagram Forwarding (cont.) Example: R2 Table Network Number Next Hop 1 R3 2 R1 3 interface 1 4 interface 0

17 Address Translation a packet reaches a new physical network map IP address into a physical address –Either determine physical address of destination host –OR determine physical address of next hop router encapsulate IP datagram inside a frame that contains link-level address

18 Address Resolution Protocol (ARP) ARP enables each host on a physical network to dynamically build up a table of mappings between IP addresses and link-level addresses Invoking ARP: an “originator” host wants to send a datagram to a host (or router) on the same physical network if no mapping is found in its ARP table, it invokes the Address Resolution Protocol

19 Executing ARP 1.“originator” host broadcast an ARP query containing “target IP address” and {IP address; link-layer address} of originator host 2.if a host on network already has an entry for originator host, it “refreshes” this entry (resets length of time until it discards entry) 3.target host adds information about originator to its table & sends back a response message that contains its link- layer address 4.originator adds information contained in the response to its ARP table 5.all other hosts do not add an entry for the originator host

20 ARP: Notes mappings may change over time entries are timed out periodically and removed –discarded if not refreshed (in about 10 minutes)

21 ARP Packet Format HardwareType: type of physical network (e.g., Ethernet) ProtocolType: type of higher layer protocol (e.g., IP) HLEN & PLEN: length of physical and protocol addresses Operation: request or response Source/Target - Physical/Protocol addresses

22 ARP Packet Format TargetHardwareAddr (bytes 2 5) TargetProtocolAddr (bytes 0 3) SourceProtocolAddr (bytes 2 3) Hardware type = 1ProtocolType = 0x0800 SourceHardwareAddr (bytes 4 5) TargetHardwareAddr (bytes 0 1) SourceProtocolAddr (bytes 0 1) HLen = 48PLen = 32Operation SourceHardwareAddr (bytes 0―3) ― ― ―― ― ― Mapping IP into Ethernet Addresses

23 Internet Control Message Protocol (ICMP) a companion protocol to IP defines a collection of error messages that are sent back to source host whenever a router or host is unable to process an IP datagram successfully

24 Error Messages Defined by ICMP Destination unreachable TTL exceeded (so datagrams don’t cycle forever) Checksum failed Reassembly failed Cannot fragment Echo (ping) Redirect (one of the control messages a router can send back to a source host) –there is a better route to the destination