Saturday, July 30, 2011

Learning ipv6 part 1




Differentiate Between IPv4 and IPv6

A. Address structure

IPv4


IPv4 address use 32 bit and each bit is seperated by dotted. Ipv4 address notation as follows:

xxxxxxxx . xxxxxxxx . xxxxxxxx . xxxxxxxx

where each symbol 'x' represent combination of 0 & 1 bits, eg:

11000000 . 10101000 . 00000010 . 00000001 (in binary)

192 .168 .2 .1 (in decimal)

if you are not familiar with this, please do some research on google.

IPv6

IPv6 is not like IPv4, it use more than 32 bit address notation. IPv6 using 128 bits.
now we look at IPv6 address notation as follows:-


x : x : x : x : x : x : x : x

if you translate into binary where 'x' represent combination of 1 & 1 bits. eg:

1111111001111000:0010001101000100:1011111001000001:1011110011011010:
0100000101000101:0000000000000000:0000000000000000:0011101000000000

too long to read isn't it, try convert into hexadecimal it is much more easy to read http://www.mathsisfun.com/binary-decimal-hexadecimal-converter.html.

FE78:2344:BE43:BCDA:4145:0:0:3A

well, now it is to read. so, if you look at notation number 6 & 7 there are 2 '0' with IPv6 you can simplified the address to be like this:-

FE78:2344:BE43:BCDA:4145::3A

another example:

4004:0:0:0:0:0:1304:2424 ------> 4004::1304:2424

No comments: