0
2.7kviews
Explain the IPv4 header format and compare it with IPv6.
1 Answer
written 3.5 years ago by |
| Version (4 Bits) | IHL (4 Bits) | DSCP (6 Bits) | ECN (2 Bits) | Total Length (16 Bits) | | --- | --- | --- | --- | --- | | Identification (16 Bits) | Flags (3 Bits) | Fragment Offset (13 Bits) | | Time to Live (8 Bits) | Protocol (8 Bits) | Header Checksum (16 Bits) | | Source Address (32 Bits) | | Destination Address (32 Bits) | | Options (32 Bits) |
IP header includes many relevant information including Version Number, which, in this context, is 4. Other details are as follows:
Difference between IPv4 and IPv6
S.No. | IPv4 | IPv6 |
---|---|---|
1 | IPv4 addresses are 32 bit length. | IPv6 addresses are 128 bit length. |
2 | IPv4 addresses are binary numbers represented in decimals. | IPv6 addresses are binary numbers represented in hexadecimals. |
3 | IPSec support is only optional. | Inbuilt IPSec support. |
4 | Checksum field is available in IPv4 header | No checksum field in IPv6 header. |
5 | Options fields are available in IPv4 header. | No option fields, but IPv6 Extension headers are available. |
6 | IPv4 address uses a subnet mask. | IPv6 uses a prefix length. |
7 | IPv4 is subdivided into classes (A to E) | IPv6 is classless. |
IPv6 uses a prefix and an Identifier ID known as IPv4 network | ||
8 | IPv4 header has 20 bytes. | IPv6 header is the double, it has 40 bytes. |
9 | Broadcast messages are available. | Broadcast messages are not available. |