SlideShare a Scribd company logo
1 of 1
Download to read offline
IP Header                (version 4)
   Byte
   Offset   0                              1                                 2                               3
        0                  IHL (Header
                Version                        Type of Service (TOS)                                  Total Length
                             Length)

        4                                                                    IP Flags
                                  Identification                                                          Fragment Offset
                                                                             x D M
                                                                                                                                              20
        8                                                                                                                                    Bytes
                 Time To Live (TTL)                    Protocol                                  Header Checksum
                                                                                                                                                    IHL
      12                                                          Source Address                                                                 (Internet
                                                                                                                                                  Header
                                                                                                                                                 Length)
      16                                                       Destination Address

      20                                                IP Option (optional, not common)

                                1                   2                   3
     Bit    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
                 Nibble      Byte               Word




            Version                                 Protocol                            Fragment Offset                           IP Flags
Version of IP Protocol. 4 and         IP Protocol ID. Including (but             Fragment offset from start of              x D M
6 are valid. This diagram             not limited to):                           IP datagram. Measured in 8
represents version 4                   1   ICMP    17   UDP     57   SKIP        byte (2 words, 64 bits)              x 0x80 reserved (evil bit)
structure only.                        2   IGMP    47   GRE     88   EIGRP       increments. If IP datagram is        D 0x40 Do Not Fragment
                                       6   TCP     50   ESP     89   OSPF
                                                                                 fragmented, fragment size            M 0x20 More Fragments
                                       9   IGRP    51   AH     115   L2TP
        Header Length                                                            (Total Length) must be a                    follow
                                                                                 multiple of 8 bytes.
                                                                                                                                 RFC 791
Number of 32-bit words in                         Total Length
TCP header, minimum value                                                             Header Checksum
                                                                                                                      Please refer to RFC 791 for
of 5. Multiply by 4 to get byte       Total length of IP datagram,                                                    the complete Internet
                                      or IP fragment if fragmented.              Checksum of entire IP
count.                                                                                                                Protocol (IP) Specification.
                                      Measured in Bytes.                         header

                                                                                                                     Copyright 2004 - Matt Baxter - mjb@fatpipe.org

More Related Content

What's hot

What's hot (20)

Cs8591 Computer Networks - UNIT V
Cs8591 Computer Networks - UNIT VCs8591 Computer Networks - UNIT V
Cs8591 Computer Networks - UNIT V
 
IP Address - IPv4 & IPv6
IP Address - IPv4 & IPv6IP Address - IPv4 & IPv6
IP Address - IPv4 & IPv6
 
Data link layer
Data link layerData link layer
Data link layer
 
Implementing cisco mpls
Implementing cisco mplsImplementing cisco mpls
Implementing cisco mpls
 
Address resolution protocol (ARP)
Address resolution protocol (ARP)Address resolution protocol (ARP)
Address resolution protocol (ARP)
 
Ospf.ppt
Ospf.pptOspf.ppt
Ospf.ppt
 
network Addressing
network Addressingnetwork Addressing
network Addressing
 
Wi-Fi Module
Wi-Fi ModuleWi-Fi Module
Wi-Fi Module
 
Point To Point Protocol
Point To Point ProtocolPoint To Point Protocol
Point To Point Protocol
 
Tcp header/IP Header/Authentication header
Tcp header/IP Header/Authentication headerTcp header/IP Header/Authentication header
Tcp header/IP Header/Authentication header
 
Unit 4 UDP
Unit 4 UDPUnit 4 UDP
Unit 4 UDP
 
Difference between PCI PCI-X PCIe
Difference between PCI PCI-X PCIeDifference between PCI PCI-X PCIe
Difference between PCI PCI-X PCIe
 
Rip
RipRip
Rip
 
Quality of Service(Queuing Methods)
Quality of Service(Queuing Methods)Quality of Service(Queuing Methods)
Quality of Service(Queuing Methods)
 
Leaky bucket algorithm
Leaky bucket algorithmLeaky bucket algorithm
Leaky bucket algorithm
 
Direct memory access (dma) with 8257 DMA Controller
Direct memory access (dma) with 8257 DMA ControllerDirect memory access (dma) with 8257 DMA Controller
Direct memory access (dma) with 8257 DMA Controller
 
Congestion control
Congestion controlCongestion control
Congestion control
 
Transport layer protocols : TCP and UDP
Transport layer protocols  : TCP and UDPTransport layer protocols  : TCP and UDP
Transport layer protocols : TCP and UDP
 
Congestion on computer network
Congestion on computer networkCongestion on computer network
Congestion on computer network
 
Routing
RoutingRouting
Routing
 

Viewers also liked

Viewers also liked (8)

Networking Basics
Networking BasicsNetworking Basics
Networking Basics
 
Tcp Header
Tcp HeaderTcp Header
Tcp Header
 
Arp
ArpArp
Arp
 
TCP/IP Model
TCP/IP ModelTCP/IP Model
TCP/IP Model
 
TCP-IP Reference Model
TCP-IP Reference ModelTCP-IP Reference Model
TCP-IP Reference Model
 
TCP/IP Basics
TCP/IP BasicsTCP/IP Basics
TCP/IP Basics
 
TCP/IP Network ppt
TCP/IP Network pptTCP/IP Network ppt
TCP/IP Network ppt
 
TCP Model
TCP ModelTCP Model
TCP Model
 

Similar to Ip header (20)

IP Address
IP AddressIP Address
IP Address
 
Internet protocol
Internet protocolInternet protocol
Internet protocol
 
TCP/IP – Transmission Control Protocol/ Internet Protocol
TCP/IP – Transmission Control Protocol/ Internet ProtocolTCP/IP – Transmission Control Protocol/ Internet Protocol
TCP/IP – Transmission Control Protocol/ Internet Protocol
 
Ip
IpIp
Ip
 
Internet Protocol
Internet ProtocolInternet Protocol
Internet Protocol
 
network fundamental
network fundamentalnetwork fundamental
network fundamental
 
14 IP Header.pptx
14 IP Header.pptx14 IP Header.pptx
14 IP Header.pptx
 
Network Layer
Network LayerNetwork Layer
Network Layer
 
Ipv4
Ipv4Ipv4
Ipv4
 
I pv6
I pv6I pv6
I pv6
 
I pv6
I pv6I pv6
I pv6
 
I pv6
I pv6I pv6
I pv6
 
10 coms 525 tcpip - internet protocol - ip
10   coms 525 tcpip -  internet protocol - ip10   coms 525 tcpip -  internet protocol - ip
10 coms 525 tcpip - internet protocol - ip
 
Internetworking - IP
Internetworking - IPInternetworking - IP
Internetworking - IP
 
I.p. protocol
I.p. protocolI.p. protocol
I.p. protocol
 
Вопросы балансировки трафика
Вопросы балансировки трафикаВопросы балансировки трафика
Вопросы балансировки трафика
 
nat.ppt
nat.pptnat.ppt
nat.ppt
 
Understanding Internet Protocol (IPv4)
Understanding Internet Protocol (IPv4)Understanding Internet Protocol (IPv4)
Understanding Internet Protocol (IPv4)
 
Ipspk1
Ipspk1Ipspk1
Ipspk1
 
Intro tcpip-part1
Intro tcpip-part1Intro tcpip-part1
Intro tcpip-part1
 

Ip header

  • 1. IP Header (version 4) Byte Offset 0 1 2 3 0 IHL (Header Version Type of Service (TOS) Total Length Length) 4 IP Flags Identification Fragment Offset x D M 20 8 Bytes Time To Live (TTL) Protocol Header Checksum IHL 12 Source Address (Internet Header Length) 16 Destination Address 20 IP Option (optional, not common) 1 2 3 Bit 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 Nibble Byte Word Version Protocol Fragment Offset IP Flags Version of IP Protocol. 4 and IP Protocol ID. Including (but Fragment offset from start of x D M 6 are valid. This diagram not limited to): IP datagram. Measured in 8 represents version 4 1 ICMP 17 UDP 57 SKIP byte (2 words, 64 bits) x 0x80 reserved (evil bit) structure only. 2 IGMP 47 GRE 88 EIGRP increments. If IP datagram is D 0x40 Do Not Fragment 6 TCP 50 ESP 89 OSPF fragmented, fragment size M 0x20 More Fragments 9 IGRP 51 AH 115 L2TP Header Length (Total Length) must be a follow multiple of 8 bytes. RFC 791 Number of 32-bit words in Total Length TCP header, minimum value Header Checksum Please refer to RFC 791 for of 5. Multiply by 4 to get byte Total length of IP datagram, the complete Internet or IP fragment if fragmented. Checksum of entire IP count. Protocol (IP) Specification. Measured in Bytes. header Copyright 2004 - Matt Baxter - mjb@fatpipe.org