COMPUTER NETWORKS CS610 Lecture-30 Hammad Khalid Khan.

Slides:



Advertisements
Similar presentations
Discussion Monday ( ). ver length 32 bits data (variable length, typically a TCP or UDP segment) 16-bit identifier header checksum time to live.
Advertisements

CE363 Data Communications & Networking Chapter 7 Network Layer: Internet Protocol.
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
IP datagrams Service paradigm, IP datagrams, routing, encapsulation, fragmentation and reassembly.
IP Fragmentation. MTU Maximum Transmission Unit (MTU) –Largest IP packet a network will accept –Arriving IP packet may be larger IP Packet MTU.
Network Layer – IPv4 Dr. Sanjay P. Ahuja, Ph.D.
1 IP - The Internet Protocol Relates to Lab 2. A module on the Internet Protocol.
CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
Chapter 20 Network Layer: Internet Protocol Stephen Kim 20.1.
Network Layer Packet Forwarding IS250 Spring 2010
CSCI 4550/8556 Computer Networks Comer, Chapter 21: IP Encapsulation, Fragmentation, and Reassembly.
CS335 Networking & Network Administration Tuesday, May 11, 2010.
CSCI 4550/8556 Computer Networks Comer, Chapter 20: IP Datagrams and Datagram Forwarding.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets, 5e By Douglas E. Comer Lecture PowerPoints.
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
Chapter 3 Review of Protocols And Packet Formats
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.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Network Layer ICMP and fragmentation.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part XI Internetworking Part 2.4 (Datagram Encapsulation, Transmission, Fragmentation, Reassembly)
G64INC Introduction to Network Communications Ho Sooi Hock Internet Protocol.
Datagram Fragmentation, ICMP & IPv6
TCOM 509 – Internet Protocols (TCP/IP) Lecture 03_a
Network Layer Last Update Copyright Kenneth M. Chipps Ph.D.
Chapter 21: IP Encapsulation, Fragmentation & Reassembly
Dr. John P. Abraham Professor UTPA
Internet Protocol --- Connectionless Datagram Delivery Linda Wu (CMPT )
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
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.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 21.
NET0183 Networks and Communications Lectures 15 and 16 Datagram Forwarding 8/25/20091 NET0183 Networks and Communications by Dr Andy Brooks Lecture powerpoints.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 OSI Network Layer Network Fundamentals – Chapter 5.
TCP/IP Protocol Suite 1 Chapter 8 Upon completion you will be able to: Internet Protocol Understand the format and fields of a datagram Understand the.
Communications Services Connection Oriented Service  A connection is established  Data is sent or received over this connection  Connection may be terminated.
CS 4396 Computer Networks Lab
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”
Chapter 21 IP Encapsulation, Fragmentation, and Reassembly.
© 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.
1 Computer Communication & Networks Lecture 19 Network Layer: IP and Address Mapping Waleed Ejaz.
EECB 423 V.1 1 Internetworking 2 Datagram Encapsulation Transmission Fragmentation and Reassembly.
Internet Protocol Version 4 VersionHeader Length Type of Service Total Length IdentificationFragment Offset Time to LiveProtocolHeader Checksum Source.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
IP Fragmentation. Network layer transport segment from sending to receiving host on sending side encapsulates segments into datagrams on rcving side,
COMPUTER NETWORKS CS610 Lecture-32 Hammad Khalid Khan.
Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
IP Fragmentation. MTU Maximum Transmission Unit (MTU) –Largest IP packet a network will accept –Arriving IP packet may be larger IP Packet MTU.
Network Layer & IP Protocol.
IP - The Internet Protocol
COMPUTER NETWORKS CS610 Lecture-33 Hammad Khalid Khan.
Computer Networks and Internets, 5e By Douglas E. Comer
IP - The Internet Protocol
Network Fundamentals – Chapter 5
IP - The Internet Protocol
Dr. John P. Abraham Professor UTPA
IP Encapsulation, Fragmentation, and Reassembly
Chapter 20 Network Layer: Internet Protocol
Dr. John P. Abraham Professor UTRGV, EDINBURG, TX
IP - The Internet Protocol
Dr. John P. Abraham Professor UTPA
Net 323 D: Networks Protocols
IP - The Internet Protocol
COMPUTER NETWORKS CS610 Lecture-29 Hammad Khalid Khan.
Network Fundamentals – Chapter 5
ITIS 6167/8167: Network and Information Security
IP - The Internet Protocol
NET 323D: Networks Protocols
Presentation transcript:

COMPUTER NETWORKS CS610 Lecture-30 Hammad Khalid Khan

Review Lecture 29  IP Datagram and Datagram Forwarding  Connectionless service  Virtual Packets  IP Datagram Format and Size  Routing Table and Address Masks  Best Effort Delivery

IP Datagram Header Format

 VERS - version of IP (currently 4)  H. LEN - header length (in units of 32 bits)  SERVICE TYPE - sender's preference for low latency, high reliability (rarely used)  TOTAL LENGTH - total octets in datagram  IDENT, FLAGS, FRAGMENT OFFSET - used with fragmentation

IP Datagram Header Format  TTL - time to live; decremented in each router; datagram discarded when TTL = 0  TYPE - type of protocol carried in datagram; e.g., TCP, UDP.  HEADER CHECKSUM - 1s complement of 1s complement sum.  SOURCE, DEST,IP ADDRESS - IP addresses of original source and ultimate destination.

IP Datagram Options  Several options can be added to IP header: – Record route – Source route – Time stamp  Header with no options has H. LEN field value 5; data begins immediately after DESTINATION IP ADDRESS.  Options added between DESTINATION IP ADDRESS and data in multiples of 32 bits.  Header with 96 bits of options has H. LEN field value 8.

Chapter 21 IP Encapsulation, Fragmentation and Reassembly

Datagram Transmission and Frames

Encapsulation  Network interface layer encapsulates IP datagram as data area in hardware frame. – Hardware ignores IP datagram format – Standards for encapsulation describe details.  Standard defines data type for IP datagram, as well as others (e.g., ARP).  Receiving protocol stack interprets data area based on frame type.

Encapsulation

Encapsulation across Multiple Hops  Each router in the path from the source to the destination: – Unencapsulates incoming datagram from frame. – Processes datagram - determines next hop. – Encapsulates datagram in outgoing frame.  Datagram may be encapsulated in different hardware format at each hop.   Datagram itself is (almost!) unchanged.

Encapsulation across Multiple Hops

MTU  Every hardware technology specification includes the definition of the maximum size of the frame data area.  Called the Maximum Transmission Unit (MTU).  Any datagram encapsulated in a hardware frame must be smaller than the MTU for that hardware.

MTU and Heterogeneous Networks  An internet may have networks with different MTUs.  Suppose downstream network has smaller MTU than local network?

Fragmentation  One technique - limits datagram size to smallest MTU of any network.  IP uses fragmentation - datagrams can be split into pieces to fit in network with small MTU.  Router detects datagram larger than network MTU. – Splits into pieces. – Each piece smaller than outbound network MTU.

Fragmentation  Each fragment is an independent datagram – Includes all header fields. – Bit in header indicates datagram is a fragment. – Other fields have information for reconstructing original datagram. – FRAGMENT OFFSET gives original location of fragment.  Router uses local MTU to compute size of each fragment.  Puts part of data from original datagram in each fragment.  Puts other information into header.

Fragmentation

Datagram Reassembly  Reconstruction of original datagram is called Reassembly.  Ultimate destination performs reassembly.

Datagram Reassembly  Fragments may arrive out of order; header bit identifies fragment containing end of data from original datagram.  Fragment 3 identified as last fragment.

Identifying a Datagram & Fragment Loss

Fragment Loss  IP may drop fragment.  What happens to original datagram? – Destination drops entire original datagram.  How does destination identify lost fragment? – Sets timer with each fragment. – If timer expires before all fragments arrive, fragment assumed lost. – Datagram dropped.  Source (application layer protocol) assumed to retransmit.

Fragmenting a Fragment  Fragment may encounter subsequent network with even smaller MTU.  Router fragments the fragment to fit.   Resulting sub-fragments look just like original fragments (except for size).   No need to reassemble hierarchically; sub-fragments include position in original datagram.

Summary  IP Datagram Header Format  Datagram Transmission and Frames  Encapsulation  Transmission across an Internet  MTU  Reassembly  Identifying a Datagram  Fragmentation Loss  Fragmenting a Fragment