Protocol | IPv4 | IPv6 |
Address | 4 Octet xx.xx.xx.xx * 5 Classes * Class A ~ 2^26 local @ Class B ~ 2^20 local @ Class C ~ 2^256 local @ Class D - multicast Class E - experimental
Class A ~ 1st octet specifies domain *, high bit of high octet 0
Note that some IPs are reserved for special purposes : |
64 bit subnet prefix / 64 bit interface identifier * Classless * - single sized domain id makes routing much easier.
Node ID often generated from/consists of MAC@ |
Size |
Size field 16 bit 20 bytes(just header) - 65535 bytes. *
Fragmenting (usually) permitted * |
Size field 16 bit Packet created to match minimum allowed along path or 1280 (default)*
Minimum IPv6 packet 40 bytes (header).
Fragmented packets NOT permitted * IPv6 supports Jumbogram, (2^32)-1 if all hops support. |
Header | Variable length 20 - 60 bytes. * |
Standard 40 octet. * Allows linking 8 octet 'extension' headers following main header
|
Header structure |
http://en.wikipedia.org/wiki/IPv4#Header Version Id. 4-bit * IHL (header length) 4-bit DSCP ECN Total Length 16-bit * of IP packet. Identification - used when packet is fragmented. Flags Fragment offset * - fragment sequence # TTL (Time to live) * - decremented at each hop, also checked for age
Protocol - type of data Header check sum * - needs to be recalculated each hop. Source IP * Destination IP * Options - seldom used |
http://en.wikipedia.org/wiki/IPv6_packet#Fixed_header Version Id. 4-bit * Traffic class. 8-bit Flow label. 20-bit Payload length * 16-bit - set to zero if Jumbo-gram. Next header * 8-bit - link to 1st additional header block if used.
Hop Limit 8-bit *
Destination IP 128-bit *
* Note : NO check-sum - check-sum recalculation slowed hop and multiple
checks at other layers of TCP/IP stack guarantee packet delivery.
Pointer to first link in linked list of Extension Headers.
Linked Extension list placed between the IPv6 header and the
protocal (data body).
IPv6 uses one of the next header nodes to specify the type of transport
layer data.
|
Data Transport layer |
Data - various types 256 possible data types, 142 assigned. http://en.wikipedia.org/wiki/List_of_IP_protocol_numbers
68 bytes minimum - 64KiB maximum. If permitted, data can be fragmented over a particular link. |
Data - various types 256 possible data types, 142 assigned. |