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.

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
University of Calgary – CPSC 441.  IP (Internet Protocol) is a Network Layer Protocol.  RFC 791 provides the specification for IP. 2 Network Layer application.
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.
CPSC 441 Tutorial TA: Fang Wang Some of the slide contents are courtesy of the authors of the the following textbooks: - “Mastering Computer Networks:
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 Computer Networks IP: The Internet Protocol. 2 IP is a connection-less, unreliable network layer protocol IP provides best effort services in the sense.
CSCI 4550/8556 Computer Networks Comer, Chapter 21: IP Encapsulation, Fragmentation, and Reassembly.
CS335 Networking & Network Administration Tuesday, May 11, 2010.
CSEE W4140 Networking Laboratory Lecture 6: TCP and UDP Jong Yul Kim
CSCI 4550/8556 Computer Networks Comer, Chapter 20: IP Datagrams and Datagram Forwarding.
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.
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.
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.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Network Layer Internet Protocol (IP) layer Introduction.
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.
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.
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
1 The Network Layer 1.IP - The Internet Protocol 2.ICMP - Internet Control Message Protocol 3.IP Forwarding 4.Notes on lab.
Internet Protocols (chapter 18) CSE 3213 Fall 2011.
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.
Lecture 4 Overview. Ethernet Data Link Layer protocol Ethernet (IEEE 802.3) is widely used Supported by a variety of physical layer implementations Multi-access.
© 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.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
1 Internetworking: IP Packet Switching Reading: (except Implementation; pp )
IP Protocol CSE TCP/IP Concepts Connectionless Operation Internetworking involves connectionless operation at the level of the Internet Protocol.
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,
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.
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
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
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:

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.

IPv4 Address Model ClassNetwork IDHost ID# of Addresses # of Networks A0 + 7 bit24 bit B bit16 bit65, C bit8 bit D Multicast AddressIP Multicast EFuture Use 0Network (7 bits) Network (14 bits) Network (21 bits) Host (24 bits) Host (16 bits) Host (8 bits) Class A: Class B: Class C:

IP: The waist of the hourglass 4 IP is the waist of the hourglass of the Internet protocol architecture Multiple higher-layer protocols Multiple lower-layer protocols Only one protocol at the network layer.

Application protocol 5 IP is the highest layer protocol which is implemented at both routers and hosts

IP Service 6 Delivery service of IP is minimal IP provide provides an unreliable connectionless best effort service (also called: “datagram service”).  Unreliable: IP does not make an attempt to recover lost 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,…)

IP IP is connectionless in the end-to-end delivery  Data delivered in datagrams (packets / frames), each with a header Combines collection of physical networks into single, virtual network Transport protocols use this connectionless service to provide connectionless data delivery (UDP) and connection-oriented data delivery (TCP)

IP is Best Effort Delivery IP provides service equivalent to LAN Does not guarantee to prevent  Duplicate datagrams  Delayed or out-of-order delivery  Corruption of data  Datagram loss Reliable delivery provided by transport layer Network layer - IP - can detect and report errors without actually fixing them

IP Problems Higher layer protocols have to deal with losses or with duplicate packets Packets may be delivered out-of-sequence

IP Service 10 IP supports the following services:  one-to-one (unicast)  one-to-all (broadcast)  one-to-several(multicast) IP multicast also supports a many-to-many service. IP multicast requires support of other protocols (IGMP, multicast routing) unicast broadcast multicast

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

Forwarding Datagrams The header contains all the information needed to deliver a datagram to a destination computer  Destination address  Source address  Identifier  Other delivery information Routers examine the header of each datagram and forwards the datagram along a path to the destination  Use routing table to compute next hop  Update routing tables using algorithms previously discussed  Link state, distance vector, manually

IP Datagram Format bytes ≤ Header Size < 2 4 x 4 bytes = 60 bytes 20 bytes ≤ Total Length < 2 16 bytes = bytes

IP Datagram Format 14 Transmission is row by row  For each row: 1. First transmit bits Then transmit bits Then transmit bits Then transmit bits Note: Many computers (incl. Intel processors) store 32-bit words in little endian format. Others (incl. Motorola processors) use big endian. This is called network byte order (LE or BE) "Big Endian" means that the high-order byte of the number is stored in memory at the lowest address, and the low-order byte at the highest address. 0x1234:  BE: LE: 34 12

Maximum Transmission Unit 15 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: 1500FDDI: :1492ATM AAL5: : 4464PPP: negotiated

Datagram Lifetime Datagrams could loop indefinitely  Consumes resources  Transport protocol may need upper bound on datagram life Datagram marked with lifetime  Time To Live field in IP  Once lifetime expires, datagram discarded (not forwarded)  Hop count  Decrement time to live on passing through a each router  Time count  Need to know how long since last router

IP Fragmentation 17 MTUs: FDDI: 4352 Ethernet: 1500 Fragmentation: IP router splits the datagram into several datagram Fragments are reassembled at receiver What if the route contains networks with different MTUs? Or exceeds?

Where is Fragmentation done? 18  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

IP Fragmentation and Reassembly ID =x offset =0 moreflag =0 length =4000 ID =x offset =0 moreflag =1 length =1500 ID =x offset =1480 moreflag =1 length =1500 ID =x offset =2960 moreflag =0 length =1040 One large datagram becomes several smaller datagrams

Fragmenting Fragments A fragment may encounter a 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

Dealing with Failure Re-assembly may fail if some fragments get lost Need to detect failure Re-assembly time out  Assigned to first fragment to arrive  If timeout expires before all fragments arrive, discard partial data

Error Control Not guaranteed delivery Router should attempt to inform source if packet discarded  e.g. for time to live expiring Source may modify transmission strategy May inform high layer protocol Datagram identification needed Destination doesn’t ACK or NAK if checksum fails, no retries, best-effort like Ethernet