Oct 19, 2004CS573: Network Protocols and Standards1 IP: Datagram and Addressing Network Protocols and Standards Autumn 2004-2005.

Slides:



Advertisements
Similar presentations
Networks I Internet Protocol Instituto Tecnológico y de Estudios Superiores de Monterrey Campus Estado de México Prof. MSc. Ivan A. Escobar Broitman TC1007.
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.
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
Network Layer – IPv4 Dr. Sanjay P. Ahuja, Ph.D.
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.
Internet Protocol (IP)
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.
1 TDC TDC 365 Network Interconnections Technologies Lecture #4 Notes Spring, 2009.
EEC-484/584 Computer Networks Lecture 10 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
IP Protocol. The Internet Protocol (IP) is a network-layer (Layer 3) protocol that contains addressing information and some control information that enables.
CSCI 4550/8556 Computer Networks Comer, Chapter 20: IP Datagrams and Datagram Forwarding.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Network Layer ICMP and fragmentation.
Internet Protocol (IP)
TCOM 509 – Internet Protocols (TCP/IP) Lecture 03_a
TCOM 515 IP Routing Lab Lecture 1. Class information Instructor: Wei Wu –Lecture and Lab session 2 – Instructor:
Internet Protocol: Connectionless Datagram Delivery (IPv4)
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.
Hour 4 The Internet Layer 1. What You'll Learn in This Hour: IP addresses The IP header ARP ICMP 2.
TCOM 515 IP Routing. Syllabus Objectives IP header IP addresses, classes and subnetting Routing tables Routing decisions Directly connected routes Static.
1 IP : Internet Protocol Computer Network System Sirak Kaewjamnong.
Dr. John P. Abraham Professor UTPA
Internet Protocol --- Connectionless Datagram Delivery Linda Wu (CMPT )
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.
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
Washington WASHINGTON UNIVERSITY IN ST LOUIS Fred Kuhns Applied Research Laboratory NSP packet Formats.
Jan 15, 2008CS573: Network Protocols and Standards1 The Internet Protocol: Related Protocols and Standards (IP datagram, addressing, ARP) Network Protocols.
Chapter 20 Network Layer: Internet Protocol
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-8 Network Layer in the Internet. IP Protocol: IP V4 At network layer, internet can be viewed as a collection of sub-networks or Autonomous Systems.
1 Kyung Hee University Chapter 8 Internet Protocol (IP)
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.
Chapter 8 Internet Protocol (IP)
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.
IP Protocol CSE TCP/IP Concepts Connectionless Operation Internetworking involves connectionless operation at the level of the Internet Protocol.
IP Fragmentation. Network layer transport segment from sending to receiving host on sending side encapsulates segments into datagrams on rcving side,
Packet Switch Network Server client IP Ether IPTCPData.
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.
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
IP - The Internet Protocol
7 Network Layer Part IV Computer Networks Tutun Juhana
Chapter 7: The Infamous IP
IP - The Internet Protocol
Internet Protocol (IP)
IP - The Internet Protocol
Chapter 7: The Infamous IP
Dr. John P. Abraham Professor UTPA
IP : Internet Protocol Surasak Sanguanpong
Dr. John P. Abraham Professor UTRGV, EDINBURG, TX
CPEG512 Advanced Computer Networks
IP - The Internet Protocol
Dr. John P. Abraham Professor UTPA
Net 323 D: Networks Protocols
Chapter 15. Internet Protocol
IP - The Internet Protocol
Anjuman College of Engineering and Technology Department of Computer Science and Engineering VII Sem. TCP and IP (Elective I) Prof. Nazish Khan.
IP - The Internet Protocol
Fred Kuhns Applied Research Laboratory
Presentation transcript:

Oct 19, 2004CS573: Network Protocols and Standards1 IP: Datagram and Addressing Network Protocols and Standards Autumn

Oct 19, 2004CS573: Network Protocols and Standards2 IPv4 IP Datagram Format IPv4 Addressing ARP and RARP IP Routing Basics Subnetting and Supernetting ICMP Network Address Translation (NAT) Dynamic Addressing

Oct 19, 2004CS573: Network Protocols and Standards3 The Internet Protocol A network layer protocol Not Reliable: delivery not guaranteed Connectionless: no virtual circuit Packets may take different paths Packets may arrive out of order Best Effort: packets may be discarded when network resources are exhausted Reference RFC 791

Oct 19, 2004CS573: Network Protocols and Standards4 The IP Datagram The IP datagram (or Internet datagram) is the basic information unit Header area Data area The IP datagram is transported from one network to another Encapsulated in the network frame (layer 2 frame) within a particular network IP allows its datagrams to be fragmented Once a datagram is fragmented, its fragments travel as separate datagrams all the way to the final destination

Oct 19, 2004CS573: Network Protocols and Standards5 The IP Datagram Datagram Header Data in the Datagram IP Datagram Frame Header Complete Datagram treated as data MAC Frame

Oct 19, 2004CS573: Network Protocols and Standards6 IP Datagram Format HEADER CHECKSUM TOTAL LENGTH FRAGMENT OFFSET OPTIONS DATA VERSTYPE OF SERVICEIHL IDENTIFICATIONFLAGS TIME TO LIVEPROTOCOL SOURCE IP ADDRESS DESTINATION IP ADDRESS …… PADDING 31 Fixed Portion of Header Header

Oct 19, 2004CS573: Network Protocols and Standards7 IP Datagram Fields VERS Specifies IP protocol version in use See RFC 1700 for assigned versions Currently, IP version 4 or IPv4 IHL IP Datagram header length (32-bit words) 5  IHL value  15 Total Length Specifies total length (data+header) Length is given in octets Max value is 65,535 bytes

Oct 19, 2004CS573: Network Protocols and Standards8 IP Datagram Fields Type of Service (TOS)  Hint to Network Elements Precedence: (priority) specifies importance of a datagram Network Control011 - Flash Internetwork Control Immediate CRITIC/ECP001 - Priority Flash Override000 – Routine D: Requests low delay service T: Requests high throughput service R: Requests high reliability service DTRPrecedenceUnused bits

Oct 19, 2004CS573: Network Protocols and Standards9 Fragmentation Control The following fields of the datagram header control fragmentation: IDENTIFICATION: contains a unique integer which identifies the datagram. Any gateway that fragments a datagram copies the IDENTIFICATION field into every fragment (host chooses a number to uniquely identify each datagram) FLAGS: (3 bits) contains a do not fragment bit and a more fragments bit, the third bit is unused. The more fragments bit allows a destination to know where the end of the original datagram is FRAGMENT OFFSET: specifies the offset (in units of 8 bytes) of this fragment into the original datagram (all fragments except the last one must be multiples of 8 bytes) unused do not fragment more fragments

Oct 19, 2004CS573: Network Protocols and Standards10 Datagram Lifetime (TTL) The TIME TO LIVE field specifies how long (in seconds) a datagram is allowed to remain on the Internet system. Packets that exceed their lifetime are discarded. Since it is difficult for routers to know exact transit time in networks, simple rules are used: Each router along the path from source to destination decrements TIME TO LIVE by 1 when it processes the datagram header To handle the case of overloaded routers that may introduce long delays, the local arrival time is recorded and the TIME TO LIVE counter decrements by the number of seconds the datagram waited for service inside the router.

Oct 19, 2004CS573: Network Protocols and Standards11 Other Datagram Header Fields PROTOCOL: (protocol ID) specifies which transport layer process is to receive this datagram. Assigned protocol IDs can be found in RFC1700. HEADER CHECKSUM: Checksum is computed only on the header (including OPTIONS), which reduces processing time at gateways (adds up all the 16 bit half-words using 1’s complement arithmetic then takes the one’s complement of the result) PADDING: octets containing zeros that are needed to ensure that the Internet header extends to an exact multiple of 32 bits (since the header length is specified in 32-bit words).

Oct 19, 2004CS573: Network Protocols and Standards12 Internet Datagram Options The OPTIONS field is used for testing and debugging in the Internet, and for signaling special options The length varies, depending upon which options are selected. There are two cases for the format of an option: A single option code byte; or An option code byte, an option length byte, and data bytes associated with the option

Oct 19, 2004CS573: Network Protocols and Standards13 Internet Datagram Options The option code octet is divided into three fields, as shown below: Copy specifies how a gateway handles options during fragmentation. Copy=1 means the option is copied onto all fragments; Copy = 0 specifies that the option is only copied onto the first fragment Option Class: Option ClassMeaning 0Datagram or network control 1Reserved for future use 2Debugging and measurement 3Reserved for future use CopyOption ClassOption Number 12 5 bits

Oct 19, 2004CS573: Network Protocols and Standards14 IP Option Numbers Option Class Option Number LengthDescription 001End of option list: Used if options do not end at end of datagram 011No operation 0211Security and handling restrictions 03VarLoose source routing: Used to route datagram along specified path 07VarRecord route: Used to trace route 09VarStrict source routing: Used to route datagram along a specified path 24VarInternet timestamp: Used to record timestamps along the route Var is used for variable

Oct 19, 2004CS573: Network Protocols and Standards15 Record Route Option The Record Route option provides a way to monitor how gateways route datagrams CODE: specifies the option number and class LENGTH: gives length of option as it appears in IP datagram INTERNET ADDRESS: denotes the area reserved for internet addresses. This region is initially empty. Each router along the datagram path enters its address on the list POINTER: points to next available internet address slot in the option. When a gateway receives the datagram, it puts its address in the slot given by the pointer CODE (7)LENGTHPOINTER FIRST INTERNET ADDRESS SECOND INTERNET ADRESS … … … bits

Oct 19, 2004CS573: Network Protocols and Standards16 Source Route Options The Source Route options allow network designers to dictate the path of a datagram through the network Strict Source Routing: specifies a sequence of internet addresses which a datagram must follow. The path between any two addresses can consist of only a single physical network Loose Source Routing: specifies a sequence of internet addresses which a datagram must follow. The path between any two addresses may consist of multiple network hops The format of the option is very similar to the Record Route option There is a code, length, and pointer, along with a list of internet addresses forming the specified route

Oct 19, 2004CS573: Network Protocols and Standards17 Timestamp Option The timestamp option, like the record route option, has an initially-empty list, and each router along the path from source to destination fills in one item on the list. Entries here are the times at which the datagram passes through a particular gateway and (possibly) the identity of the gateway The value of the timestamp is the number of milliseconds since midnight, Universal Time