You are on page 1of 6

The role of IP protocol

IP protocol is part of the Internet layer of the TCP/IP protocol suite. It is one of the most important Internet protocols because it allows the development and transport of IP datagrams (data packets), without however ensuring their "delivery". In reality, IP protocol processes IP datagrams independently from each other by defining their representation, routing and forwarding. IP protocol determines the recipient of the message using 3 fields:
y y y

The IP address field: machine address The subnet mask field: a subnet mask enables the IP protocol to establish the part of the IP address which relates to the network The default gateway field: enables the Internet protocol to know which machine to deliver a datagram to if ever the destination machine is not on the local area network.

Datagrams
Data circulates on the Internet in the form of datagrams (also known as packets). Datagrams are encapsulated data, i.e. data to which headers are added relating to information about their transport (such as the destination IP address). The data contained within the datagram is analysed (and possibly modified) by the routers allowing their transit. Here is what a datagram looks like: <-Version (4 bits) 32 bits Header Service type Total length length (8 bits) (16 bits) (4 bits) Identification Flag Fragment offset (16 bits) (3 bits) (13 bits) Time to live Protocol Header checksum (8 bits) (8 bits) (16 bits) Source IP address (32 bits) Destination IP address (32 bits) Data -->

Here are the meanings of the different fields:


y

Version (4 bits): this is the version of IP protocol being used (currently version 4 IPv4 is being used) in order to verify the validity of the datagram. It is coded over 4 bits.

y y

y y

y y

Header length or IHL for Internet Header Length (4 bits): this is the number of 32 bit words making up the header (NB: the minimum value is 5). This field is coded over 4 bits. Service type (8 bits): indicates the way in which the datagram must be processed. Total length (16 bits): indicates the total size of the datagram in bytes. The size of this field being 2 bytes, the total size of the datagram cannot exceed 65536 bytes. Used jointly with the header size, this field makes it possible to determine where the data is located. Identification, flags and fragment offsetting are fields which enable datagram fragmentation, they are explained below. TTL or Time to Live (8 bits): this field specifies the maximum number of routers through which the datagram may pass. So this field is decremented with each passage through a router and when it reaches the critical value of 0, the router destroys the datagram. This prevents the network being overloaded with lost datagrams. Protocol (8 bits): this field, in decimal notation, makes it possible to find out which protocol the datagram comes from. o ICMP: 1 o IGMP: 2 o TCP: 6 o UDP: 17 Header checksum (16 bits): this field contains a value coded over 16 bits which enables the integrity of the header to be monitored in order to establish whether it has been altered during transmission. The checksum is the addition of one to all the 16 bit words of the header (checksum field excluded). This is done so that when the header fields are added together (inclusive checksum), a number with all the bits positioned at 1 is obtained. Source IP address (32 bits): This field represents the IP address of the originator machine, it enables the recipient to respond. Destination IP address (32 bits): IP address of the message recipient

Fragmentation of IP datagrams
As we have previously seen, the maximum size of a datagram is 65536 bytes. However, this value is never reached because networks do not have sufficient capacity to send such large packets. In addition, networks on the Internet use different technologies and the maximum size of a datagram varies depending on the network type. The maximum size of a frame is called the MTU (Maximum Transfer Unit); it will lead to the fragmentation of the datagram if it is larger than the network's MTU. Network type MTU (in bytes) Arpanet 1000 Ethernet 1500 FDDI 4470 Datagram fragmentation takes place at router level, i.e. during transition from a network with a large MTU to a network with a smaller MTU. If the datagram is too large to pass onto the

network, the router will fragment it, i.e. cut it into fragments smaller than the network's MTU in such a way that the size of the fragment is a multiple of 8 bytes.

The router will then send these fragments independently and re-encapsulate them (add a header to each fragment) in such a way as to take into account the new size of the fragment. In addition, the router adds information so that the recipient machine can reassemble the fragments in the right order. However, there is nothing to say that the fragments will arrive in the right order, considering that they are routed independently from each other. To take into account fragmentation, each datagram has several fields permitting their reassembly:
y

y y y

Fragment offset field (13 bits): field providing the position of the beginning of the fragment in the initial datagram. The unit of measure for this field is 8 bytes (the first fragment having a zero value). Identification field (16 bits): number allocated to each fragment in order to enable reassembly. Total length field (16 bits): this is recalculated for each fragment. Flag field (3 bits): this comprises of three bits: o The first is not used. o The second (called DF: Don't Fragment) indicates if the datagram can be fragmented or not. If a datagram has this bit positioned at one and the router cannot route it without fragmenting it, the datagram is rejected with an error message. o The second (called MF: More Fragments), indicates if the datagram is a fragment of data (1). If the indicator is at zero, this indicates that the fragment is the last (so the router must be in possession of all the previous fragments) or the datagram has not been subject to fragmentation.

IP routing
IP routing is an integral part of the Internet layer of the TCP/IP suite. Routing consists of providing the routing for an IP datagram across a network by taking the shortest path. This role is conducted by machines called routers, i.e. machines linked (linking) by at least two networks.

More information
For more information on ICMP protocol, please refer to RFC 791 which explains the IP protocol in detail:

y y

RFC 791 in French RFC 791 original

Read more
ARP Last update on Thursday October 16, 2008 02:43:22 PM by Jeff This document entitled IP protocol from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the licence, as this note appears clearly. TCP/IPARP

Around the same subject


IP protocol > Search Major protocols that make up the TCP/IP Protocol suite > Reviews What does TCP/IP mean? TCP/IP is a suite of protocols. The acronym TCP/IP means "Transmission Control Protocol/Internet Protocol" and is pronounced "T-C-P-I-P". It comes from the names of the two major protocols in the suite of protocols, i.e.... Network application design using TCP/IP protocol in windows GSM > Tips The TCP / IP Model Intro The different layers The features This article describes the reference model TCP / IP, which is the historical and technical standard of the Internet. Intro The U.S. Department of Defense has established... Ip protocol to transfer messages from a server to a client > Reviews Introduction to the HTTP protocol Since 1990 HTTP protocol (HyperText Transfer Protocol) has been the most widely used protocol on the Internet. Version 0.9 was only intended to transfer data over the Internet (in particular Web pages written in... Ip protocol mac header > Reviews Document written by Nico VanHaute History of IP protocol The days of IP protocol in its current format (IPv4) are numbered. From the middle of the 1990s the Internet was largely used by universities, high tech industries and the government, but... IP protocol is not able to ensure reliable data transport > Reviews The characteristics of TCP protocol TCP (which means Transmission Control Protocol) is one of the main protocols of the transport layer of the TCP/IP model. It makes it possible, at application level, to manage data coming from (or going to) the...

Download tcp/ip protocol windows 7 for lan game > Reviews Networking in Windows 2000/XP To configure each computer, simply go to the control panel, then double-click "network connections" and right-click "local area connection", then choose properties! The local area connection window displays the... Windows 7 cannot find ip protocol error > Tips Common Windows Error Codes and How to Fix them! Below is a list of the most common error codes that you an face while using Windows and its basic components. Some solutions have been provided for you to try to solve them. You should also note that... Ip protocol list > Reviews Document written by Nico VanHaute, Julien Barascud and Jean-Roland Conca Introduction: What are RTP and RTCP? The spread of computers, added to the availability of cheap audio/video computer hardware, and the availability of higher connection... Ip Protocols firefox > Tips [Firefox] slp protocol Issue Solution Note Issue when I click on a link that points to a file I have a real message that says that no application is associated with the slp protocol, I use Firefox 1.5.0.2 on Mandriva, plugins are... Difference between UDP and TCP/IP protocols in java > Tips Differences between the UDP and TCP protocols User Datagram Protocol (UDP) Transmission Control Protocol (TCP) Note that: User Datagram Protocol (UDP) It is part of the base protocols of the Internet Protocol Suite. Programs on... Les port deu protocoles TCP/ip > Reviews The use of ports Many TCP/IP programs can be executed simultaneously over the Internet (you can for example open several browsers simultaneously or browse HTML pages while downloading a file via FTP). Each of these programs works with a protocol,... What is the most convenient means of determining what the Internet Protocol (IP) address is on a Microsoft Windows XP machine is > Tips What is your IP address? What is an IP address? How to know your IP address? For Windows 2000/ Windows XP/ Windows Vista users For Windows 95/ Windows 98 users Under Linux By using online tools Why do some sites displays different IP... Transport Protocol TCP/IP is not installed > Tips

Transport Protocol TCP/IP is not installed Issue Solution Issue I've been on a download site and since then I have error messages that appear when starting my computer: "Error 10091: Can not create socket "Transport Protocol TCP/IP is... Snmp protocol > Reviews Definition of the term SNMP SNMP means Simple Network Management Protocol. It is a protocol which enables network administrators to manage network devices and diagnose network problems. SNMP operating principle The network management system is... Free IP Switcher > Download If you are led to move regularly and to link you to different networks, you must re-configure IP address continuously, footbridge, mask of sub-network, proxy waiter, printer by default, etc.... For it, it is necessary to remember every network... More

You might also like