IP



The Internet Protokoll (IP) V4, defined in the RFC791, is the routing layer service of the TCP/IP network.

V4

4

8

16

32 bits

Ver

IHL

Type of Service/
DSCP & ECN

total length

Identification

 Flags |      Fragment offset

Time to Live

Protocol

Header checksum

Source address

Destination address

Options + Padding

Data



VersVersion - mark the used version of the IP-protocol, "4" for V4

IHLInternet Header Length - length of the IP-Header in units of 32 bits (min. 5)
Type of Service























Differentiated Service
old interpretation

Establishing of a service kindliness - for example priority, dilatory installment, reliability

Prec

0Routine
1Priority
2Immediate
3Flash
4Flash override
5CRITIC/ECP
6Internetwork control
7Network control
DLow delay
THigh throughput
RHigh reliability
MMinimize monetary cost


new interpretation

The DSCP Feld, defined in the RFC2474, replaces the Type Of Sevice Feld (RFC3168) for IPv4

ECN-bits            xx
   ECN-Capable Transport (ECT)
   Congestion Experienced (CE)
Class Selector PHB (Per Hop Behavior)xxx000
Assured Forwarding PHB (AF PHB) /
Expedited Forwarding PHB (EF PHB)
all other
total lengthtotal length (header + data) of the IP datagram
Identificationfor reassembling of fragments
Flags
DFdon't fragment
MFmore fragments follow
Fragment offsetposition of the current fragment in the datagram in units of 64 bits
Time to LiveLifespan during handling by router (discarding of the datagram with 0)
ProtocolTransportation protocol (TCP,UDP,ICMP,...)
Header checksumChecksum of the harder, recalculation through each router (without data)
Source addresssenders IP-address
Destination addressreceivers IP-address
Options + Paddingoptional parameters (0..40 bytes)
CCopy
Class0Control
1"Reserved"
2Debugging ans measurement
3"Reserved"
Option0End of Option list
1NOP
2Security
3Loose Source Route
4Time stamp[RFC781],[RFC791]
5Extended Security[RFC1108]
6Commercial Security
7Record Route[RFC791]
8Strem Identifier[RFC791],[RFC1122]
9Strct Source Route[RFC791]
10Experimental Measurement
11MTU Probe[RFC1063]
12MTU Reply[RFC1063]
13Experimental Flow Control
14Experimental Access Control
15
16IMI Traffic Descriptor
17Extended Internet Proto
18Traceroute[RFC1393]
19Adress Extension[RFC1475]
20Router Alert[RFC2113]
21Selective Directed Broadcast Mode[RFC1770]
22NSAP Addresses
23Dynamic Packet State
24Upstream Multicast Packet
...

plus filling byte on 32-bit-borders




IP version 6 (IPv6) is the new version of the Internet Protokoll based on IPv4.
Additional services and a widened IP-address room were integrated. The options of the IPv6 are placed on that occasion in a seperatem header between the IPv6 header and the Transportlayer header.

V6

4

8

16

24

32 bits

Ver

Priority

Flow label

Payload length

Next header

Hop limit

Source address
(128 bits)

Destination address
(128 bits)