NET 323D: Networks Protocols

Slides:



Advertisements
Similar presentations
Chapter 20 Network Layer: Internet Protocol
Advertisements

Computer Networks20-1 Chapter 20. Network Layer: Internet Protocol 20.1 Internetworking 20.2 IPv IPv6.
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.
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
NETWORK LAYER (1) T.Najah AlSubaie Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University College of Computer Since and Information System NET331.
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.
Internet Protocol (IP)
1 Computer Networks IP: The Internet Protocol. 2 IP is a connection-less, unreliable network layer protocol IP provides best effort services in the sense.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 7 Internet Protocol Version4.
Module 10. Internet Protocol (IP) is the routed protocol of the Internet. IP addressing enables packets to be routed from source to destination using.
Introduction to Networks CS587x Lecture 1 Department of Computer Science Iowa State University.
Network Layer Last Update Copyright Kenneth M. Chipps Ph.D.
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.
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.
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
ECE 4110 – Internetwork Programming IP Protocol. 2 * From TCP/IP Protocol Suite, B. A. Forouzan, Prentice Hall Position of IP in TCP/IP Protocol Suite.
Network Layer: Internet Protocol.
Chapter 19 Network Layer Protocols Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
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.
CS 4396 Computer Networks Lab
Chapter 20 Network Layer: Internet Protocol
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.
© 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.
NET 221D:COMPUTER NETWORKS FUNDAMENTALS Lecture 5: Network Layer 1.
COMPUTER NETWORKS CS610 Lecture-30 Hammad Khalid Khan.
Network Layer Protocols COMP 3270 Computer Networks Computing Science Thompson Rivers University.
IP Fragmentation. Network layer transport segment from sending to receiving host on sending side encapsulates segments into datagrams on rcving side,
Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 7 Internet Protocol Version4.
IPv4 IPv4 The Internet Protocol version 4 (IPv4) is the delivery mechanism used by the TCP/IP protocols. Datagram Fragmentation Checksum Options Topics.
Lecture 13 IP V4 & IP V6. Figure Protocols at network layer.
20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
NET 221D:Computer Networks Fundamentals
Chapter 5 Network and Transport Layers
Chapter 19 Network Layer Protocols
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
IP - The Internet Protocol
Process-to-Process Delivery, TCP and UDP protocols
NET 221D:Computer Networks Fundamentals
IP - The Internet Protocol
Net431:advanced net services
Internet Protocol Version4
Net 431: ADVANCED COMPUTER NETWORKS
Chapter 20 Network Layer: Internet Protocol
Internet Protocol Version4
IP - The Internet Protocol
Dr. John P. Abraham Professor UTPA
Chapter 20 Network Layer: Internet Protocol
Process-to-Process Delivery:
Dr. John P. Abraham Professor UTRGV, EDINBURG, TX
IP - The Internet Protocol
Dr. John P. Abraham Professor UTPA
Chapter 20. Network Layer: IP
Net 323 D: Networks Protocols
IP - The Internet Protocol
Chapter 7 Internet Protocol Version 4 (IPv4)
Internet Protocol (IP)
Process-to-Process Delivery: UDP, TCP
ITIS 6167/8167: Network and Information Security
IP - The Internet Protocol
Transport Layer 9/22/2019.
Presentation transcript:

NET 323D: Networks Protocols Networks and Communication Department Lecture 3: IPv4

Topics discussed in this section: 20-2 IPv4 The Internet Protocol version 4 (IPv4) is the current and common delivery mechanism used by the TCP/IP protocols. Topics discussed in this section: Datagram Fragmentation Checksum Options

The Internet Protocol version 4 (IPv4) The Internet Protocol version 4 (IPv4) is the current and common delivery mechanism used by the TCP/IP protocols. IPv4 is an unreliable connectionless protocol responsible for source-to-destination delivery. Packets in IPv4 layer are known as Datagram which consists of two parts: a header and data (payload). The length of the header is 20 – 60 bytes and it contains essential information for routing and packet delivery. The position of IPv4 in TCP/IP protocol suit and its datagram format are shown in Figure 20.4 and 20.5 respectively

Internet Protocol (IPv4) It is a layer 3 protocol Host-to-host network layer delivery protocol for the internet. It is unreliable and connectionless protocol. No error control. No flow control. It has error detection (discard) If reliability is of concern, the IP has to be tied to a connection-oriented protocol (i.e. TCP) In reality, each packet (datagram) is handled independently: Each packet can follow different rout to destination. Thus, Packets may arrive out of order, dropped and/or lost.  IP relies on higher level protocols to take care of all these problems.

Figure 20.5 IPv4 datagram format Packets in the IPv4 layer are called datagrams. Figure 20.5 shows the IPv4 datagram format. A datagram is a variable-length packet consisting of two parts: header and data. Figure 20.5 IPv4 datagram format

Internet Protocol (IPv4): Header Format Field Length Description Version 4 bit Identifies the version of IP used to generate the datagram HLEN Specifies the length of the IP header, including the length of any options and padding. The normal value of this field when no options are used is (20 bytes) value must be multiplied by 4 to give the length in bytes Service (TOS) 8 bit Type of Service (TOS): A field designed to carry information to provide quality of service features, such as prioritized delivery, for IP datagram. Total Length (TL) 16 bit Specifies the total length of the IP datagram, in bytes. Since this field is 16 bits, the maximum length of an IP datagram is 65,535 bytes (2^16 – 1) of which 20-60 byte is the header. Identification This field is used by the receiver to reassemble messages without mixing fragments from different messages. Flags 3 bit Control flags to manage fragmentation Fragmentation offset 13 bit This field specifies the offset, or position, in the overall message where the data in this fragment goes. Time to live (TTL) 8 bits Specifies how long the datagram is allowed to “live” on the network, in terms of router hops. Each router decrements the value of the TTL by one prior to transmitting it. If the TTL =0, the datagram is discarded.

Internet Protocol (IPv4): Header Format Field Length Description Protocol 8 bit Identifies the higher layers protocols (transport or encapsulated network layer protocols) carried in the datagram Header checksum 16 A checksum computed over the header to provide basic protection against corruption in transmission Source address 32 bit The 32-bit IP address of the originator of the datagram (intermediate device will not change it) Destination address The 32-bit IP address of the intended recipient of the datagram. (intermediate device will not change it) options var One or more of several types of options may be included after the standard headers in certain IP datagram

length of data = total length - header Note The total length field defines the total length of the datagram including the header. Since the field length is 16 bits, the total length (header + data) is 65 515 bytes. 20 to 60 bytes are used as header. Thus, length of data = total length - header

Example 20.1 An IPv4 packet has arrived with the first 8 bits as shown: 01000010 The receiver discards the packet. Why? Solution There is an error in this packet. The 4 leftmost bits (0100) show the version, which is correct. The next 4 bits (0010) show an invalid header length (2 × 4 = 8). The minimum number of bytes in the header must be 20. The packet has been corrupted in transmission.

Figure 20.9 Maximum transfer unit (MTU) Table 20.5 MTUs for some networks

Advantages of a large MTU: ■ Good for transferring large amounts of data over long distances ■ No fragmentation necessary; faster delivery and no reassembly ■ Fewer lost datagrams ■ More efficient (less overhead) Advantages of a small MTU: ■ Good for transferring time-sensitive data such as audio or video ■ Better suited for multiplexing 18-Jul-19 Networks and Communication Department

Figure 20.10 Flags used in fragmentation Figure 20.11 Fragmentation example Fragmentation is the division of a datagram into smaller units to accommodate the MTU of a data link protocol.

Figure 20.12 Detailed fragmentation example

Example 20.5 A packet has arrived with an M bit value of 0. Is this the first fragment, the last fragment, or a middle fragment? Do we know if the packet was fragmented? Solution If the M bit is 0, it means that there are no more fragments; the fragment is the last one. However, we cannot say if the original packet was fragmented or not. A non-fragmented packet is considered the last fragment.

Example 20.6 A packet has arrived with an M bit value of 1. Is this the first fragment, the last fragment, or a middle fragment? Do we know if the packet was fragmented? Solution If the M bit is 1, it means that there is at least one more fragment. This fragment can be the first one or a middle one, but not the last one. We don’t know if it is the first one or a middle one; we need more information (the value of the fragmentation offset).

Example 20.7 A packet has arrived with an M bit value of 1 and a fragmentation offset value of 0. Is this the first fragment, the last fragment, or a middle fragment? Solution Because the M bit is 1, it is either the first fragment or a middle one. Because the offset value is 0, it is the first fragment.

Example 20.8 A packet has arrived in which the offset value is 100. What is the number of the first byte? Do we know the number of the last byte? Solution To find the number of the first byte, we multiply the offset value by 8. This means that the first byte number is 800. We cannot determine the number of the last byte unless we know the length.

Example 20.9 A packet has arrived in which the offset value is 100, the value of HLEN is 5, and the value of the total length field is 100. What are the numbers of the first byte and the last byte? Solution The first byte number is 100 × 8 = 800. The total length is 100 bytes, and the header length is 20 bytes (5 × 4), which means that there are 80 bytes in this datagram. If the first byte number is 800, the last byte number must be 879.