SlideShare a Scribd company logo
1 of 2
Download to read offline
http://www.tutorialspoint.com/ipv4/ipv4_packet_structure.htm Copyright © tutorialspoint.com
IPV4 - PACKET STRUCTURE
Internet Protocolbeing a layer-3 protocol(OSI) takes data Segments fromlayer-4 (Transport) and divides it
into what’s called packet. IP packet encapsulates data unit received fromabove layer and adds its ownheader
information.
The encapsulated data is referred to as IP Payload. IP header contains allthe necessary informationto deliver
the packet at the other end.
IP header includes many relevant informationincluding VersionNumber, which, inthis context, is 4. Other details
are as follows:
Version: Versionno. of Internet Protocolused (e.g. IPv4)
IHL: Internet Header Length, Lengthof entire IP header
DSCP: Differentiated Services Code Point, This is Type of Service.
ECN: Explicit CongestionNotification, carries informationabout the congestionseeninthe route.
Total Length: Lengthof entire IP Packet (including IP header and IP Payload)
Identification: If IP packet is fragmented during the transmission, allthe fragments containsame
identificationno. to identify originalIP packet they belong to.
Flags: As required by the network resources, if IP Packet is too large to handle these ‘flags’ tellthat if
they canbe fragmented or not. Inthis 3-bit flag, the MSB is always set to ‘0’.
Fragment Offset: This offset tells the exact positionof the fragment inthe originalIP Packet.
Time to Live: To avoid looping inthe network, every packet is sent withsome TTL value set, whichtells
the network how many routers (hops) this packet cancross. At eachhop, its value is decremented by one
and whenthe value reaches zero, the packet is discarded.
Protocol: Tells the Network layer at the destinationhost, to whichProtocolthis packet belongs to, i.e.
the next levelProtocol. For example protocolnumber of ICMP is 1, TCP is 6 and UDP is 17.
Header Checksum: This field is used to keep checksumvalue of entire header whichis thenused to
check if the packet is received error-free.
Source Address: 32-bit address of the Sender (or source) of the packet.
Destination Address: 32-bit address of the Receiver (or destination) of the packet.
Options: This is optionalfield, whichis used if the value of IHL is greater than5. These optionmay
containvalues for options suchas Security, Record Route, Time Stamp etc.

More Related Content

What's hot

Ch 19 Network-layer protocols - section 2
Ch 19   Network-layer protocols - section 2Ch 19   Network-layer protocols - section 2
Ch 19 Network-layer protocols - section 2Hossam El-Deen Osama
 
Network layer
Network layerNetwork layer
Network layersbkbca
 
Unit 4 tansport layer in the internat
Unit 4 tansport layer in the internatUnit 4 tansport layer in the internat
Unit 4 tansport layer in the internatKritika Purohit
 
Ch 18 intro to network layer - section 4
Ch 18   intro to network layer - section 4Ch 18   intro to network layer - section 4
Ch 18 intro to network layer - section 4Hossam El-Deen Osama
 
Final Presentation on the Network layer
Final Presentation on the Network layerFinal Presentation on the Network layer
Final Presentation on the Network layerZee Haak
 
Internet protocols Report Slides
Internet protocols Report SlidesInternet protocols Report Slides
Internet protocols Report SlidesBassam Kanber
 
Introduction to IP
Introduction to IPIntroduction to IP
Introduction to IPaibad ahmed
 
Exploration network chapter_5_modified
Exploration network chapter_5_modifiedExploration network chapter_5_modified
Exploration network chapter_5_modifiedrajesh531
 
TCP/IP Protocol Architeture
TCP/IP Protocol ArchitetureTCP/IP Protocol Architeture
TCP/IP Protocol ArchitetureManoj Kumar
 
User datagram protocol
User datagram protocolUser datagram protocol
User datagram protocolIshtdeep Hora
 
Tcp Udp Icmp And The Transport Layer
Tcp Udp Icmp And The Transport LayerTcp Udp Icmp And The Transport Layer
Tcp Udp Icmp And The Transport Layertmavroidis
 

What's hot (20)

Network Layer
Network LayerNetwork Layer
Network Layer
 
Ch 19 Network-layer protocols - section 2
Ch 19   Network-layer protocols - section 2Ch 19   Network-layer protocols - section 2
Ch 19 Network-layer protocols - section 2
 
Network layer
Network layerNetwork layer
Network layer
 
Network Layer
Network LayerNetwork Layer
Network Layer
 
Network Layer by-adeel
Network Layer by-adeelNetwork Layer by-adeel
Network Layer by-adeel
 
Network layer
Network layerNetwork layer
Network layer
 
Unit 4 tansport layer in the internat
Unit 4 tansport layer in the internatUnit 4 tansport layer in the internat
Unit 4 tansport layer in the internat
 
Ch 18 intro to network layer - section 4
Ch 18   intro to network layer - section 4Ch 18   intro to network layer - section 4
Ch 18 intro to network layer - section 4
 
Final Presentation on the Network layer
Final Presentation on the Network layerFinal Presentation on the Network layer
Final Presentation on the Network layer
 
Network layer u3
Network  layer u3Network  layer u3
Network layer u3
 
Internet protocols Report Slides
Internet protocols Report SlidesInternet protocols Report Slides
Internet protocols Report Slides
 
Introduction to IP
Introduction to IPIntroduction to IP
Introduction to IP
 
Exploration network chapter_5_modified
Exploration network chapter_5_modifiedExploration network chapter_5_modified
Exploration network chapter_5_modified
 
TCP/IP Protocol Architeture
TCP/IP Protocol ArchitetureTCP/IP Protocol Architeture
TCP/IP Protocol Architeture
 
TCP/IP 3RD SEM.2012 AUG.ASSIGNMENT
TCP/IP 3RD SEM.2012 AUG.ASSIGNMENTTCP/IP 3RD SEM.2012 AUG.ASSIGNMENT
TCP/IP 3RD SEM.2012 AUG.ASSIGNMENT
 
Transport Layer
Transport LayerTransport Layer
Transport Layer
 
User datagram protocol
User datagram protocolUser datagram protocol
User datagram protocol
 
Network layer logical addressing
Network layer logical addressingNetwork layer logical addressing
Network layer logical addressing
 
TCP/IP Basics
TCP/IP BasicsTCP/IP Basics
TCP/IP Basics
 
Tcp Udp Icmp And The Transport Layer
Tcp Udp Icmp And The Transport LayerTcp Udp Icmp And The Transport Layer
Tcp Udp Icmp And The Transport Layer
 

Similar to Ipv4 packet structure

Similar to Ipv4 packet structure (20)

I.p. protocol
I.p. protocolI.p. protocol
I.p. protocol
 
Tcp header/IP Header/Authentication header
Tcp header/IP Header/Authentication headerTcp header/IP Header/Authentication header
Tcp header/IP Header/Authentication header
 
tcpheader-151221111244.pdf
tcpheader-151221111244.pdftcpheader-151221111244.pdf
tcpheader-151221111244.pdf
 
Tcp ip
Tcp ipTcp ip
Tcp ip
 
Tcp Ip Overview
Tcp Ip OverviewTcp Ip Overview
Tcp Ip Overview
 
TCPIP
TCPIPTCPIP
TCPIP
 
TCP/IP Protocal Suite
TCP/IP Protocal SuiteTCP/IP Protocal Suite
TCP/IP Protocal Suite
 
TCP Vs UDP
TCP Vs UDP TCP Vs UDP
TCP Vs UDP
 
Ipspk1
Ipspk1Ipspk1
Ipspk1
 
Lecture1, TCP/IP
Lecture1, TCP/IPLecture1, TCP/IP
Lecture1, TCP/IP
 
IntroductionTransport LayerTransport Layer forms the bas.docx
IntroductionTransport LayerTransport Layer forms the bas.docxIntroductionTransport LayerTransport Layer forms the bas.docx
IntroductionTransport LayerTransport Layer forms the bas.docx
 
IP Address
IP AddressIP Address
IP Address
 
TCP/IP and UDP protocols
TCP/IP and UDP protocolsTCP/IP and UDP protocols
TCP/IP and UDP protocols
 
07 - TCP_IP and the DoD Model.ppt
07 - TCP_IP and the DoD Model.ppt07 - TCP_IP and the DoD Model.ppt
07 - TCP_IP and the DoD Model.ppt
 
C. N. II Lec.4.pdf h
C. N. II Lec.4.pdf                      hC. N. II Lec.4.pdf                      h
C. N. II Lec.4.pdf h
 
Ip and icmp
Ip and icmpIp and icmp
Ip and icmp
 
Report on ip addresses
Report on ip addressesReport on ip addresses
Report on ip addresses
 
Custom_IP_Network_Protocol_and_Router
Custom_IP_Network_Protocol_and_RouterCustom_IP_Network_Protocol_and_Router
Custom_IP_Network_Protocol_and_Router
 
Tarefa video
Tarefa video Tarefa video
Tarefa video
 
Transport Layer
Transport LayerTransport Layer
Transport Layer
 

Ipv4 packet structure

  • 1. http://www.tutorialspoint.com/ipv4/ipv4_packet_structure.htm Copyright © tutorialspoint.com IPV4 - PACKET STRUCTURE Internet Protocolbeing a layer-3 protocol(OSI) takes data Segments fromlayer-4 (Transport) and divides it into what’s called packet. IP packet encapsulates data unit received fromabove layer and adds its ownheader information. The encapsulated data is referred to as IP Payload. IP header contains allthe necessary informationto deliver the packet at the other end. IP header includes many relevant informationincluding VersionNumber, which, inthis context, is 4. Other details are as follows: Version: Versionno. of Internet Protocolused (e.g. IPv4) IHL: Internet Header Length, Lengthof entire IP header DSCP: Differentiated Services Code Point, This is Type of Service. ECN: Explicit CongestionNotification, carries informationabout the congestionseeninthe route. Total Length: Lengthof entire IP Packet (including IP header and IP Payload) Identification: If IP packet is fragmented during the transmission, allthe fragments containsame identificationno. to identify originalIP packet they belong to. Flags: As required by the network resources, if IP Packet is too large to handle these ‘flags’ tellthat if they canbe fragmented or not. Inthis 3-bit flag, the MSB is always set to ‘0’. Fragment Offset: This offset tells the exact positionof the fragment inthe originalIP Packet.
  • 2. Time to Live: To avoid looping inthe network, every packet is sent withsome TTL value set, whichtells the network how many routers (hops) this packet cancross. At eachhop, its value is decremented by one and whenthe value reaches zero, the packet is discarded. Protocol: Tells the Network layer at the destinationhost, to whichProtocolthis packet belongs to, i.e. the next levelProtocol. For example protocolnumber of ICMP is 1, TCP is 6 and UDP is 17. Header Checksum: This field is used to keep checksumvalue of entire header whichis thenused to check if the packet is received error-free. Source Address: 32-bit address of the Sender (or source) of the packet. Destination Address: 32-bit address of the Receiver (or destination) of the packet. Options: This is optionalfield, whichis used if the value of IHL is greater than5. These optionmay containvalues for options suchas Security, Record Route, Time Stamp etc.