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.

Slides:



Advertisements
Similar presentations
Computer Networks TCP/IP Protocol Suite.
Advertisements

1 IP - The Internet Protocol Relates to Lab 2. A module on the Internet Protocol.
Ch 20. Internet Protocol (IP) Internetworking PHY and data link layers operate locally.
University of Calgary – CPSC 441.  IP (Internet Protocol) is a Network Layer Protocol.  RFC 791 provides the specification for IP. 2 Network Layer application.
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.
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 – IPv4 Dr. Sanjay P. Ahuja, Ph.D.
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.
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.
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.
IP Protocol. The Internet Protocol (IP) is a network-layer (Layer 3) protocol that contains addressing information and some control information that enables.
CSEE W4140 Networking Laboratory Lecture 6: TCP and UDP Jong Yul Kim
Oct 19, 2004CS573: Network Protocols and Standards1 IP: Datagram and Addressing Network Protocols and Standards Autumn
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.
The Network Layer. Network Projects Must utilize sockets programming –Client and Server –Any platform Please submit one page proposal Can work individually.
TCP/IP Essentials A Lab-Based Approach Shivendra Panwar, Shiwen Mao Jeong-dong Ryoo, and Yihan Li Chapter 5 UDP and Its Applications.
Introduction to Networks CS587x Lecture 1 Department of Computer Science Iowa State University.
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.
Microsoft Windows Server 2003 TCP/IP Protocols and Services Technical Reference Slide: 1 Lesson 5 Internet Protocol (IP) Basics.
 The basis the Internet is built upon  Very simple, but allows more complex stuff to be layered on top.
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.
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.
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 21 IP Encapsulation, Fragmentation, and Reassembly.
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.
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on the use of these.
1 Internetworking: IP Packet Switching Reading: (except Implementation; pp )
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,
1 COMP 431 Internet Services & Protocols The IP Internet Protocol Jasleen Kaur April 21, 2016.
IPv4 IPv4 The Internet Protocol version 4 (IPv4) is the delivery mechanism used by the TCP/IP protocols. Datagram Fragmentation Checksum Options Topics.
Network Layer & IP Protocol.
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
Internet Protocol (IP)
IP - The Internet Protocol
Dr. John P. Abraham Professor UTPA
IP : Internet Protocol Surasak Sanguanpong
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:

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 textbooks: - Mastering Computer Networks: An Internet Lab Manual, J. Liebeherr, M. El Zarki, Addison-Wesley, Computer Networking: A Top Down Approach, 5th edition. Jim Kurose, Keith Ross Addison-Wesley, 2009.

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

IP: THE WAIST OF THE HOURGLASS 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

HIGHEST LAYER IN ROUTERS IP is the highest layer protocol which is implemented at both routers and hosts 4

BEST EFFORT PROTOCOL 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

Header Size: at least 20 bytes and at most 60 bytes (with options) Total Length: at most 2 16 bytes = bytes IP DATAGRAM 6 This is IPv4

IP VERSION The first publicly used version of the Internet Protocol was version 4 (IPv4) Address space: 32 bits, (approximately 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. The address exhaustion was a concern as early as 1990s. IPv6 is the next generation IP that tries to address the shortcomings of IPv4 Has 128 bits address space Designed to live alongside IPv4 7

WHAT ABOUT VERSION 5? It doesn't 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

A BIT OF HISTORY 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 2008) 9

Version (4 bits) : current version is 4, next version will be 6. Header length (4 bits) : length of IP header, in multiples of 4 bytes DS: Type of service, or type of data (used to specify priority or request low-delay routes) IP DATAGRAM FIELDS 10

Identification (16 bits): Unique identification of a datagram from a host. Incremented whenever a datagram is transmitted IP DATAGRAM FIELDS 11

12 TIME TO LIVE Time To Live (TTL) (1 byte): Specifies longest paths before datagram is dropped Role of TTL field: Ensure that packet is eventually dropped when a routing loop occurs Used as follows: Sender sets the value (e.g., 64) Each router decrements the value by 1 When the value reaches 0, the datagram is dropped

Protocol (1 byte): Specifies the higher-layer protocol (e.g. TCP and UDP) for demultiplexing. Header checksum (2 bytes): A simple 16-bit long checksum of the header IP DATAGRAM FIELDS 13

14 THE REST Source and Destination IPs Options: Security restrictions Record Route: each router that processes the packet adds its IP address to the header. Timestamp: each router that processes the packet adds its IP address and time to the header. (loose) Source Routing: specifies a list of routers that must be traversed. (strict) Source Routing: specifies a list of the only routers that can be traversed. Padding: Padding bytes are added to ensure that header ends on a 4-byte boundary

Flags (3 bits): First bit always set to 0, DF bit (Do not fragment), MF bit (More fragments) Fragment offset: For fragmentation/reassembly FRAGMENT FLAGS AND OFFSET 15

MAXIMUM TRANSMISSION UNIT Maximum size of IP datagram is 65535, but the data link layer protocol generally imposes a limit that is much smaller Example: 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: FDDI: : ATM AAL5: : (WLAN):

IP FRAGMENTATION MTUs: FDDI: 4352 Ethernet: 1500 Fragmentation : IP router splits the datagram into several datagram Fragments are reassembled at receiver 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? 17

FRAGMENTATION / REASSEMBLY 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 !! 18

FIELDS USED FOR FRAGMENTATION The following fields in the IP header are involved: Identification: When a datagram is fragmented, the identification is the same in all fragments Flags: DF bit is set: Should not fragment this Datagram, should be discarded if MTU is too small MF bit set: This datagram is part of a fragment and an additional fragment follows this one Fragment offset: Offset of the payload of this fragment in the original datagram Total length: Total length of the current fragment 19

20 EXAMPLE OF FRAGMENTATION A datagram of 4000B from a network of 4000 MTU to 1500 MTU 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

RESOURCES 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