Chapter5 Internet Protocol
Chapter5 Internet Protocol
Chapter5 Internet Protocol
Internet Protocol
Prepared By: Mr. V. D. Chougule
Contents
• IP Datagram format
• Fragmentation and reassembly models
• ARP
• RARP
• ICMP
• IGMP
Internet Protocol
• The Internet Protocol (IP) is the transmission mechanism
used by the TCP/IP protocols at the network layer.
• Figure shows the position of IP in the suite.
IP Datagram
• The Internet Protocol (IP) is the transmission mechanism
used by the TCP/IP protocols at the network layer.
• Packets in the network (internet) layer are called datagrams.
• IP datagrams is divided into two parts: Header and Data.
• TCP/IP to show the header in 4-byte sections.
IP Datagram
• The following shows the IP Datagram header format in 4-byte
sections
IP Datagram
• Version (VER)
– This 4-bit field defines the version of the IP protocol.
Currently the version is 4.
• Header length (HLEN)
– This 4-bit field defines the total length of the datagram
header
• Service type
– In the original design of IP header: type of service (TOS)
which defined how the datagram should be handled.
– field now defines a set of differentiated services.
• Total length
IP Datagram
• Identification
• Uniquely Identifies datagram. This field is used in
fragmentation
• When a datagram is fragmented, the value in the
identification field is copied into all fragments.
• i.e. all fragments have the same identification number, same
as the original datagram.
• The identification no. helps the destination in reassembling
the datagram.
• Flags: This field is used in fragmentation process. This is a
three-bit field
IP Datagram
• The first bit is reserved (not used). The second bit is called
the do not fragment bit.
• If its value is 1, the machine must not fragment the
datagram.
• If it cannot pass the datagram through any available
physical network, it discards the datagram and sends an
ICMP error message to the source host.
• If its value is 0, the datagram can be fragmented if
necessary.
• The third bit is called the more fragment bit. If its value is
1, it means the datagram is not the last fragment; there
are more fragments after this one.
• If its value is 0, it means this is the last or only fragment
IP Datagram
• Fragmentation offset
• This field is used in fragmentation process.
• It is used to indicate the starting position of the data in the
fragment in relation to the start of the data in the original
packet.
• It is the offset of the data in the original datagram measured
in units of 8 bytes. (the first byte number of fragment must be
divisible by 8)
• Type. This 8-bit field with the value 0x22 defines the
type of the message.
• Checksum. This is a 16-bit field carrying the checksum.
• Number of Group Records (M). This 16-bit field
defines the number of group records carried by the
packet.
• Number of Group Records. There can be zero or more
group records of variable length.
• Each group record includes the information related to
the responder’s membership in a single multicast
group.
Membership Report Message Format
• Record Type. Currently there are six record types as shown in
Table:
• Aux Data Len. This 8-bit field defines the length of the auxiliary
data included in each group record.
• Number of Sources (N). This 16-bit field defines the number of
32-bit multicast source addresses attached to the report.
• Source Addresses. These multiple 32-bit fields list the M
source addresses.
• Aux Data. This field contains any auxiliary data that may be
included in the report message.