University of Calgary – CPSC 441.  IP (Internet Protocol) is a Network Layer Protocol.  RFC 791 provides the specification for IP. 2 Network Layer application.

Slides:



Advertisements
Similar presentations
1 IP - The Internet Protocol Relates to Lab 2. A module on the Internet Protocol.
Advertisements

Ch 20. Internet Protocol (IP) Internetworking PHY and data link layers operate locally.
CPSC 441 TUTORIAL – FEBRUARY 27, 2012 TA: MARYAM ELAHI THE INTERNET PROTOCOL Some of the slide contents are courtesy of the authors of the the following.
Chapter 20 Network Layer: Internet Protocol
IP. Orientation 2 IP (Internet Protocol) is a Network Layer Protocol. IP’s current version is Version 4 (IPv4). It is specified in RFC 891.
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.
U N I T - 3.
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
1 Internet Protocol Version 6 (IPv6) What the caterpillar calls the end of the world, nature calls a butterfly. - Anonymous.
Network Layer IPv6 Slides were original prepared by Dr. Tatsuya Suda.
Network Layer – IPv4 Dr. Sanjay P. Ahuja, Ph.D.
1 IP - The Internet Protocol Relates to Lab 2. A module on the Internet Protocol.
Chapter 20 Network Layer: Internet Protocol Stephen Kim 20.1.
CPSC 441 Tutorial TA: Fang Wang Some of the slide contents are courtesy of the authors of the the following textbooks: - “Mastering Computer Networks:
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 5-1 Internet Protocol (IP): Packet Format, Fragmentation, Options Shivkumar Kalyanaraman Rensselaer.
1 K. Salah Module 5.2: Internet Protocol CO vs. CL protocols IP Features –Fragmentation –Routing IP Datagram Format IPv6.
Network Layer Packet Forwarding IS250 Spring 2010
1 TDC TDC 365 Network Interconnections Technologies Lecture #4 Notes Spring, 2009.
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.
CSEE W4140 Networking Laboratory Lecture 6: TCP and UDP Jong Yul Kim
Internet Protocol-IP. Objective l TCP/IP vs. OSI models l CO vs. CL protocols l IP Features »Fragmentation »Routing l IP Datagram Format l IPv6.
IPv6 Fundamentals Chapter 2: IPv6 Protocol
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.
TELE202 Lecture 9 Internet Protocols (1) 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »Congestion control »Source: chapter 12 ¥This Lecture »Internet.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 03_a
TCP/IP Essentials A Lab-Based Approach Shivendra Panwar, Shiwen Mao Jeong-dong Ryoo, and Yihan Li Chapter 5 UDP and Its Applications.
Network Layer Last Update Copyright Kenneth M. Chipps Ph.D.
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.
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.
20.1 Chapter 20 Network Layer: Internet Protocol 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.
The Internet Protocol Dr. Adil Yousif. 2  IP (Internet Protocol) is a Network Layer Protocol. Orientation.
CS 4396 Computer Networks Lab
Chapter 20 Network Layer: Internet Protocol
Chapter 6: Objectives Explain how network layer protocols and services support communications across data networks. Explain how routers enable end-to-end.
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.
Internet Protocol Version 4 VersionHeader Length Type of Service Total Length IdentificationFragment Offset Time to LiveProtocolHeader Checksum Source.
COMPUTER NETWORKS CS610 Lecture-30 Hammad Khalid Khan.
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.
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.
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
IP - The Internet Protocol
IP - The Internet Protocol
IP - The Internet Protocol
Net 431: ADVANCED COMPUTER NETWORKS
IP - The Internet Protocol
Guide to TCP/IP Fourth Edition
Dr. John P. Abraham Professor UTPA
IP : Internet Protocol Surasak Sanguanpong
Chapter 20 Network Layer: Internet Protocol
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
IPv4 Addressing By, Ishivinder Singh( ) Sharan Patil ( )
ITIS 6167/8167: Network and Information Security
IP - The Internet Protocol
NET 323D: Networks Protocols
Presentation transcript:

University of Calgary – CPSC 441

 IP (Internet Protocol) is a Network Layer Protocol.  RFC 791 provides the specification for IP. 2 Network Layer application transport network data link physical application transport network data link physical 1. Send data 2. Receive data

 IP is the waist of the hourglass of the Internet protocol stack.  Multiple higher-layer protocols  Multiple lower-layer protocols  One common protocol at the network layer for data transmission. 3

 IP is the highest layer protocol which is implemented at both routers and hosts 4

 IP provides an unreliable, connectionless, best effort service (also called: “datagram service”).  Unreliable: no guarantee for delivery of packets  Connectionless: Each packet (“datagram”) is handled independently. IP is not aware that packets between hosts may be sent in a logical sequence  Best effort: IP does not make guarantees on the service (no throughput guarantee, no delay guarantee, etc.)  Consequences: Higher layer protocols have to take care of delivery guarantees. 5

6

 The first publicly used version of the Internet Protocol was version 4 (IPv4)  Address space: 32 bits (~4.3 billion addresses)  Initially it was thought to be enough!  Address exhaustion  On February 3, 2011, the Internet Assigned Numbers Authority (IANA) officially depleted the global pool of completely fresh blocks of addresses.  Address exhaustion was a concern as early as the 1990s.  IPv6 is the next generation IP that tries to address the shortcomings of IPv4  Address space: 128 bits (~79 octillion times more than IPv4)  Designed to live alongside IPv4 7

 It does not exist. It is in fact intentionally skipped to avoid confusion, or at least to rectify it.  IP version 5 relates to an experimental TCP/IP protocol called the Internet Stream Protocol, Version 2, originally defined in RFC  This protocol was originally seen by some as being a peer of IP at the Internet Layer in the TCP/IP architecture, and in its standard, these packets were assigned IP version 5 to differentiate them from “normal” IP packets (version 4).  This protocol apparently never went anywhere, but to be absolutely sure that there would be no confusion, version 5 was skipped over in favor of version 6. 8

“The decision to put a 32-bit address space on there was the result of a year's battle among a bunch of engineers who couldn't make up their minds about 32, 128, or variable-length. And after a year of fighting, I said--I'm now at ARPA, I'm running the program, I'm paying for this stuff, I'm using American tax dollars, and I wanted some progress because we didn't know if this was going to work. So I said: OK, it's 32-bits. That's enough for an experiment; it's 4.3 billion terminations. Even the Defense Department doesn't need 4.3 billion of everything and couldn't afford to buy 4.3 billion edge devices to do a test anyway. So at the time I thought we were doing an experiment to prove the technology and that if it worked we'd have opportunity to do a production version of it. Well, it just escaped! It got out and people started to use it, and then it became a commercial thing. So this [IPv6] is the production attempt at making the network scalable.” - Vint Cerf, one of the “fathers of the Internet” From: Google IPv6 Conference

 Version (4 bits): For IPv4, this has a value of 4 (hence the name IPv4)  Internet Header Length (4 bits):  Number in 32-bit words (4 bits) of the header  This can also be interpreted as the payload offset  IP header can have a variable number of options  The minimum value for this field is 5 (RFC 791) or 20 bytes; the maximum length is 15 words = 60 bytes  Differentiated Services Code Point (6 bits): Recently redefined by RFC 2474 for Differentiated services (DiffServ). Used for real-time data streaming like VoIP. 10

 Explicit Congestion Notification (2 bits): An optional feature that is defined by RFC 3168 for notification of network congestion without dropping packets.  Both endpoints must support it and be willing to use it  Only effective when supported by the underlying network  Total Length (16 bits): The entire IP datagram size, including the header and payload.  Minimum-length is 20 bytes (minimal header with no payload) 11

 Identification (16 bits): Used primarily for uniquely identifying the group of fragments of a single IP datagram  Unique identification of a datagram from a host.  Incremented whenever a datagram is transmitted  Flags (3 bits): Bit field used to control or identify fragments  Bit 0: Reserved; must be zero  Bit 1: Don’t fragment (DF) ▪ If set, packets are dropped if they need to be fragmented  Bit 2: More fragments (MF) ▪ Zero for non-fragmented packets; for fragmented packets, all but the last packet has this flag set; the last packet will have a non-zero “Fragment Offset” field 12

 Fragment Offset (13 bits): Measured in units of 64-bit words (8 byte)  Time To Live (8 bits): Limits a datagram’s lifetime to break routing circles  Specified in seconds but in practice is used as a hop count (decrement by 1 at each router) and set to 64 at the start  When TTL is zero, the router should discard the packet; typically an ICMP Time Exceeded message is sent to the sender 13

 Protocol (8 bits): Defines the protocol used in the payload  There are over 140 protocols defined (TCP is 0x06; UDP is 0x11)  Header Checksum: the 16-bit one's complement of the one's complement sum of all 16-bit words in the header.  For computing the checksum, the value of the checksum field is zero.  Options: not often used  Used to control fragmenting, routing, debugging, security, etc.  Must be padded so that the header is divisible by 32 bits (4 bytes) 14

 Maximum size of IP datagram is 65535, but the data link layer protocol generally imposes a limit that is much smaller  Ethernet frames have a maximum payload of 1500 bytes  IP datagrams encapsulated in Ethernet frame cannot be longer than 1500 bytes  The limit on the maximum IP datagram size, imposed by the data link protocol is called maximum transmission unit ( MTU )  MTUs for various data link protocols: Ethernet:1500FDDI: :1492ATM AAL5: : (WLAN):

 What if the size of an IP datagram exceeds the MTU?  IP datagram is fragmented into smaller units  What if the route contains networks with different MTUs? MTUs: FDDI: 4352 Ethernet: 1500  Fragmentation:  IP router splits the datagram into several datagram  Fragments are reassembled at receiver 16

 Fragmentation can be done at the sender or at intermediate routers  The same datagram can be fragmented several times.  Reassembly of original datagram is only done at destination hosts !! 17

 A datagram of 4000 bytes from a network with MTU 4000 to ID =x offset =0 fragflag =0 length =4000 ID =x offset =0 fragflag =1 length =1500 ID =x offset =1480 fragflag =1 length =1500 ID =x offset =2960 fragflag =0 length =1040 One large datagram becomes several smaller datagrams

 Version (4 bits): For IPv6, this has a value of 6 (0110)  Traffic Class (8 bits): The same as the redefined IPv4 fields:  The first 6 bits are differentiated services for real-time data streaming  The last 2 bits are for ECN (Explicit Congestion Notification). 19

 Flow Label (20 bits): Originally created for giving real-time applications special service.  When set to a non-zero value, it serves as a hint to routers and switches with multiple outbound paths that these packets should stay on the same path so that they will not be reordered.  It has further been suggested that the flow label be used to help detect spoofed packets. 20

 Payload Length (16 bits): The size of the payload in octets, including any extension headers.  This is different from IPv4 as it does not include the fixed IPv6 header  The length is set to zero when a Hop-by-Hop extension header carries a Jumbo Payload option  A Jumbo Payload has a 32 bit length in the Hop-By-Hop Options extension header allowing packets up to 4GB in size!  Next Header (8 bits): The same as the IPv4 Protocol field  The extension headers are described here as protocols 21

 Hop Limit (8 bits): Replaces the time to live field of IPv4  This value is decremented by one at each intermediate node visited by the packet.  When the counter reaches 0 the packet is discarded.  Fragmented Packets  Notice there is no fragmentation fields, so routers cannot fragment IPv6 packets as they do for IPv4.  Hosts may use the fragmentation extension to send packets larger than an MTU  IPv6 also does not have a checksum field 22

 Slides from the book: “Mastering Computer Networks: An Internet Lab Manual”, J. Liebeherr, M. El Zarki, Addison-Wesley,  Slides from the book: “Computer Networking: A Top Down Approach”, 5th edition. Jim Kurose, Keith Ross Addison- Wesley,  RFC 791:  Wikipedia   