CSCI 4550/8556 Computer Networks Comer, Chapter 20: IP Datagrams and Datagram Forwarding.

Slides:



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

IPv4 - The Internet Protocol Version 4
IP datagrams Service paradigm, IP datagrams, routing, encapsulation, fragmentation and reassembly.
Network Layer – IPv4 Dr. Sanjay P. Ahuja, Ph.D.
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.
11- IP Network Layer4-1. Network Layer4-2 The Internet Network layer forwarding table Host, router network layer functions: Routing protocols path selection.
CS335 Networking & Network Administration Tuesday, May 11, 2010.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets, 5e By Douglas E. Comer Lecture PowerPoints.
Oct 19, 2004CS573: Network Protocols and Standards1 IP: Datagram and Addressing Network Protocols and Standards Autumn
Chapter 19 Binding Protocol Addresses (ARP) Chapter 20 IP Datagrams and Datagram Forwarding.
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.
Network Layer4-1 Network layer r transport segment from sending to receiving host r on sending side encapsulates segments into datagrams r on rcving side,
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
IP-UDP-RTP Computer Networking (In Chap 3, 4, 7) 건국대학교 인터넷미디어공학부 임 창 훈.
IP Routing, Format, Fragmentation Chapters 20-21, 23.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Network Layer ICMP and fragmentation.
1 Internet Protocol: Forwarding IP Datagrams Chapter 7.
1 Chapter Internetworking Part 1 (Concept, IP Addressing, IP Routing, IP Datagrams, Address Resolution.
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
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Network Layer Network Fundamentals – Chapter 5.
Internet Control Message Protocol (ICMP). Objective l IP and ICMP l Why need ICMP? l ICMP Message Format l ICMP fields l Examples: »Ping »Traceroute.
FALL, 2005CSI Part 2.3 Internetworking & Addressing (Concept, IP Addressing, IP Routing, IP Datagrams, Address Resolution Robert L. Probert, SITE,
Internet Protocol: Connectionless Datagram Delivery (IPv4)
11 NETWORK LAYER PROTOCOLS Chapter 5 IP IPX NetBEUI AppleTalk.
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.
Suez Canal University – Faculty of Computers & Informatics - Cisco Local Academy Network Fundamentals.
Chapter 22 Q and A Victor Norman CS 332 Spring 2014.
1 IP : Internet Protocol Computer Network System Sirak Kaewjamnong.
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.
1 Internet Control Message Protocol (ICMP) Used to send error and control messages. It is a necessary part of the TCP/IP suite. It is above the IP module.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Chapter 20 IP Datagrams and Datagram Forwarding. Connectionless vs Connection-oriented Service TCP/IP’s fundamental delivery service is connectionless.
NET0183 Networks and Communications Lectures 15 and 16 Datagram Forwarding 8/25/20091 NET0183 Networks and Communications by Dr Andy Brooks Lecture powerpoints.
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”
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.
© 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.
Routing Fundamentals and Subnets Introduction to IT and Communications Technology CE
Data Communications and Computer Networks Chapter 4 CS 3830 Lecture 19 Omar Meqdadi Department of Computer Science and Software Engineering University.
COMPUTER NETWORKS CS610 Lecture-30 Hammad Khalid Khan.
IP Fragmentation. Network layer transport segment from sending to receiving host on sending side encapsulates segments into datagrams on rcving side,
IP Internet Protocol. IP TCP UDP ICMPIGMP ARP PPP Ethernet.
IPv4 IPv4 The Internet Protocol version 4 (IPv4) is the delivery mechanism used by the TCP/IP protocols. Datagram Fragmentation Checksum Options Topics.
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
IP - The Internet Protocol
Computer Networks and Internets, 5e By Douglas E. Comer
Internet Protocol: Connectionless Datagram Delivery
Chapter 20 Network Layer: Internet Protocol
IP - The Internet Protocol
Dr. John P. Abraham Professor UTPA
IP : Internet Protocol Surasak Sanguanpong
Dr. John P. Abraham Professor UTRGV, EDINBURG, TX
Dr. John P. Abraham Professor UTPA
Net 323 D: Networks Protocols
IP - The Internet Protocol
COMPUTER NETWORKS CS610 Lecture-29 Hammad Khalid Khan.
ITIS 6167/8167: Network and Information Security
IP - The Internet Protocol
NET 323D: Networks Protocols
Presentation transcript:

CSCI 4550/8556 Computer Networks Comer, Chapter 20: IP Datagrams and Datagram Forwarding

Introduction Communication using IP datagrams is the fundamental Internet communication service. To better understand this facility, we must examine the format of IP datagram packets, and consider the processing of datagrams by routers, including forwarding of packets, and delivery to the final destination.

IP is Connectionless The end-to-end delivery service is connectionless. This is an extension of a LAN abstraction, with universal addressing, and data delivered in packets (frames), each with a header. It combines a collection of physical networks into a single, virtual network. Transport protocols use this connectionless service to provide connectionless data delivery (UDP) and connection-oriented data delivery (TCP).

Virtual Packets Packets server the same purpose in internet as do frames on a LAN. Each packet has a header. Routers (formerly gateways) forward packets between physical networks. Packets have a uniform, hardware-independent format that includes a header and data field, and cannot use a format dependent on any particular network hardware. IP packets are encapsulated in hardware frames for delivery across each physical network.

IP Datagram Format Formally, the unit of IP data delivery is called a datagram. It includes a header area and a data area. Datagrams can have different sizes. The header area is usually fixed (20 octets), but can have options. The data area can contain between 1 and 65,535 ( ) octets. Usually, the data area is much larger than the header.

Forwarding Datagrams The IP header contains all the information needed to deliver a datagram to the destination computer : destination address source address identifier It includes some additional delivery information, and some optional processing action information. A router examines the header of each datagram and forwards it along a path to the destination.

The Routing Table For efficiency, information about forwarding is stored by each router in a routing table. It is initialized at system initialization time. It must be updated as the network topology changes. The routing table contains a list of destination networks and the next hop for each destination. (a) Example internet (b) Conceptual table found in router R 2

Default Routes The routing table is kept small by listing destination networks rather than individual hosts. Its size can be further reduced by using default routes. A default route entry is used if the destination network is not explicitly listed in the routing table. E.g., UNOmaha uses default routes for most off-campus networks.

Routing Tables and Address Masks In practice, additional information is kept in the routing table. The destination is stored as a network address The next hop is stored as an IP address of the next router. The address mask defines how many bits of address are in the prefix : Prefix defines how much of an address used to identify the network. For example, a class A mask is This feature is used for subnetting (logically subdividing a large internet into smaller networks).

Address Mask Example (a) An internet with four networks and three routers. (b) Routing table in the center router. The addresses shown in the ‘destination’ column are masked (and’ed) with the value in the ‘mask’ column to yield the network number; the ‘next hop’ column identifies the complete IP address of a router, or direct delivery indication.

Using an Address Mask To identify the destination network, apply each address mask (Mask) to the datagram’s destination address (D) and compare that to the corresponding Destination network address (Dest) in the routing table. Can use Boolean and operation: if ((Mask[i] & D) == Dest[i]) then forward to NextHop[i] Consider (in the center router):

Forwarding, Destination Address and Next-hop Address The Destination address in an IP datagram is always the ultimate destination. A router looks up the next-hop address and forwards the datagram. The network interface layer takes two parameters: an IP datagram, and the next-hop address. The next-hop address never appears in a forwarded IP datagram.

Best-effort Delivery IP provides a service equivalent to that of a LAN. It does not guarantee to prevent duplicate datagrams, delayed or out-of-order delivery, corruption of data, or datagram loss. Reliable delivery is provided by the transport layer. The network layer - IP - can detect and report errors without actually fixing them. The network layer focuses on datagram delivery. The application layer is not interested in differentiating among delivery problems at intermediate routers.

IP Datagram Header Format

IP Datagram Header Fields VERS - version of IP (currently 4) H. LEN - header length (in units of 32 bits) SERVICE TYPE - sender's preference for priority, low latency, high reliability (rarely used) TOTAL LENGTH - total octets in datagram IDENT, FLAGS, FRAGMENT OFFSET - used with fragmentation 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 the IP header: Record route – each router puts its address in the header, replacing a free slot in the options area. Source route – specifies the exact or approximate route the datagram is to take (i.e., which routers are to forward it). Timestamp – each router puts the time in a free slot in the options area. A header with no options has H. LEN field value of 5; the data begins immediately after the DESTINATION IP ADDRESS. Options are added between the DESTINATION IP ADDRESS and data in multiples of 32 bits (with padding added if necessary to round up to a 32-bit multiple). A header with 96 bits of options has H. LEN field value 8.

Summary The basic unit of delivery used in the TCP/IP protocol suite is IP datagram. Routers use the destination address in an IP datagram header to determine the next-hop address. Forwarding information stored in a routing table in each router. The IP datagram header has 40 octets of fixed field information, with additional octets added for options.