1
00:00:06,480 --> 00:00:07,500
- [Instructor] In this segment,

2
00:00:07,500 --> 00:00:10,950
we're gonna take a closer look
at IP version six addressing,

3
00:00:10,950 --> 00:00:13,833
but we're gonna start with
review of IP version four.

4
00:00:14,880 --> 00:00:18,150
Now, an IP version four
address is made up of 32 bits.

5
00:00:18,150 --> 00:00:20,100
It's binary ones and zeros

6
00:00:20,100 --> 00:00:23,070
divided into four eight bit blocks.

7
00:00:23,070 --> 00:00:26,940
So for example, we have
the binary here, 32 bits

8
00:00:26,940 --> 00:00:28,680
and you can see that they are broken up

9
00:00:28,680 --> 00:00:30,960
into the four eight bit blocks.

10
00:00:30,960 --> 00:00:31,793
But you and I know

11
00:00:31,793 --> 00:00:35,220
that that's not how we actually
refer to an IP address.

12
00:00:35,220 --> 00:00:36,960
We refer to an IP address

13
00:00:36,960 --> 00:00:41,293
in a dotted decimal format,
for example, 10.5.6.205.

14
00:00:43,980 --> 00:00:45,660
So the question is how did we get it

15
00:00:45,660 --> 00:00:49,080
from that binary to that decimal format?

16
00:00:49,080 --> 00:00:51,150
Well, we do that by doing a conversion,

17
00:00:51,150 --> 00:00:54,300
converting binary to decimal.

18
00:00:54,300 --> 00:00:57,930
The way we do that is
in each eight bit block,

19
00:00:57,930 --> 00:01:00,990
a value is assigned to each of the places.

20
00:01:00,990 --> 00:01:04,380
So starting over on the right hand side,

21
00:01:04,380 --> 00:01:07,560
the values are one, two, four, eight,

22
00:01:07,560 --> 00:01:12,560
16, 32, 64, and 128.

23
00:01:12,870 --> 00:01:17,100
And in each block, a zero
represents null or no value

24
00:01:17,100 --> 00:01:20,430
and a one says that we pick
up the value of that place.

25
00:01:20,430 --> 00:01:22,530
So let's do a conversion together.

26
00:01:22,530 --> 00:01:25,533
Let's start with converting 00001010.

27
00:01:29,310 --> 00:01:32,220
Well, let's start over
on the left hand side

28
00:01:32,220 --> 00:01:34,890
A zero tells us there's no value,

29
00:01:34,890 --> 00:01:37,920
so we're not gonna pick
anything up in the 128 place

30
00:01:37,920 --> 00:01:42,920
or in the 64 or in the 32 or in the 16.

31
00:01:43,020 --> 00:01:44,940
But a one indicates that we do pick up

32
00:01:44,940 --> 00:01:46,560
the value of that place.

33
00:01:46,560 --> 00:01:49,080
So we're gonna pick up the value of eight.

34
00:01:49,080 --> 00:01:51,960
There's a zero in the four, so no value.

35
00:01:51,960 --> 00:01:54,510
We are gonna pick up the value of two

36
00:01:54,510 --> 00:01:56,910
and there's a zero in the one.

37
00:01:56,910 --> 00:02:01,910
So eight plus two is going to
give us a decimal value of 10.

38
00:02:03,180 --> 00:02:04,380
Let's do one more.

39
00:02:04,380 --> 00:02:06,930
Let's do the one all
the way up to the right.

40
00:02:06,930 --> 00:02:11,670
That block is 11001101.

41
00:02:11,670 --> 00:02:14,370
Remember, a zero represents
no value or a null.

42
00:02:14,370 --> 00:02:17,670
A one says we pick up
the value of that place.

43
00:02:17,670 --> 00:02:19,860
So we have a one in the first place here,

44
00:02:19,860 --> 00:02:22,029
so we're gonna pick up 128.

45
00:02:22,029 --> 00:02:24,510
We're going to pick up 64.

46
00:02:24,510 --> 00:02:26,820
We have a zero in the
32, so nothing there.

47
00:02:26,820 --> 00:02:29,323
A zero in the 16, nothing there.

48
00:02:29,323 --> 00:02:30,660
A one in the eight place,

49
00:02:30,660 --> 00:02:32,820
so that means we'll pick up the eight.

50
00:02:32,820 --> 00:02:34,290
A one in the four place,

51
00:02:34,290 --> 00:02:36,180
so we'll pick up the four.

52
00:02:36,180 --> 00:02:40,380
A zero in the two and then
a one in the one place.

53
00:02:40,380 --> 00:02:44,310
So we're gonna take 128 plus
64, which is 192.168.10.0,

54
00:02:44,310 --> 00:02:49,310
plus eight is 200, plus
four is 204 plus one is 205,

55
00:02:49,830 --> 00:02:53,943
which is gonna give us
a decimal format of 205.

56
00:02:55,320 --> 00:02:56,700
If we were to do all of them,

57
00:02:56,700 --> 00:02:59,340
we would end up with a 10, a five, a 60,

58
00:02:59,340 --> 00:03:01,290
and 205 is our values

59
00:03:01,290 --> 00:03:05,160
and we separate them
with a period or a dot.

60
00:03:05,160 --> 00:03:08,373
That's how we get our
dotted decimal format.

61
00:03:10,020 --> 00:03:12,810
Well, IP version six does not use decimal

62
00:03:12,810 --> 00:03:14,610
or dotted decimal notation.

63
00:03:14,610 --> 00:03:16,860
Instead it uses hexadecimal

64
00:03:16,860 --> 00:03:20,610
and instead of dots it's going
to separate using a colon.

65
00:03:20,610 --> 00:03:23,550
So let's first talk
about what hexadecimal is

66
00:03:23,550 --> 00:03:26,913
and then we'll take a look
at IP version six addresses.

67
00:03:27,990 --> 00:03:30,330
Hexadecimal is a
positional numbering system

68
00:03:30,330 --> 00:03:32,130
that uses base 16.

69
00:03:32,130 --> 00:03:34,830
To represent the values
in a readable format,

70
00:03:34,830 --> 00:03:37,650
the system uses the number zero to nine

71
00:03:37,650 --> 00:03:40,260
to represent the values from zero to nine

72
00:03:40,260 --> 00:03:43,020
and the letters A to F
to represent the values

73
00:03:43,020 --> 00:03:44,313
from 10 to 15.

74
00:03:45,630 --> 00:03:49,920
So if you look at our table
here, we have decimal,

75
00:03:49,920 --> 00:03:52,740
binary, and hex, and I've given you

76
00:03:52,740 --> 00:03:55,110
a little binary cheat sheet

77
00:03:55,110 --> 00:03:57,870
of those first four
positions over to the right

78
00:03:57,870 --> 00:04:00,240
of one, two, four, and eight.

79
00:04:00,240 --> 00:04:03,360
So we know decimal zero is binary 000,

80
00:04:03,360 --> 00:04:05,340
it's also hex zero.

81
00:04:05,340 --> 00:04:06,600
How about decimal one?

82
00:04:06,600 --> 00:04:10,620
Well in binary, that would
be represented by 0001,

83
00:04:10,620 --> 00:04:11,850
only having the one place,

84
00:04:11,850 --> 00:04:14,160
and in hex it's gonna be a one.

85
00:04:14,160 --> 00:04:15,900
Let's jump down to nine.

86
00:04:15,900 --> 00:04:20,900
Nine in decimal is 1001 in binary.

87
00:04:21,600 --> 00:04:25,110
Picking up the eight place
plus the one is nine.

88
00:04:25,110 --> 00:04:26,610
And it will still be nine in hex

89
00:04:26,610 --> 00:04:29,190
because we're going to use zero to nine

90
00:04:29,190 --> 00:04:31,800
to represent the values from zero to nine.

91
00:04:31,800 --> 00:04:33,480
Now let's go to 10.

92
00:04:33,480 --> 00:04:36,510
Right, 10 in decimal is one zero or 10.

93
00:04:36,510 --> 00:04:40,170
In binary it's 1010,
representing the eight place

94
00:04:40,170 --> 00:04:41,040
and the two place.

95
00:04:41,040 --> 00:04:42,660
Eight plus two is 10.

96
00:04:42,660 --> 00:04:46,800
And it's going to be represented
by the letter A in hex.

97
00:04:46,800 --> 00:04:48,750
Jumping down to 15.

98
00:04:48,750 --> 00:04:49,920
15 in decimal.

99
00:04:49,920 --> 00:04:51,660
Binary it's 1111,

100
00:04:51,660 --> 00:04:54,330
which is eight plus
four plus two plus one.

101
00:04:54,330 --> 00:04:58,290
So eight plus four is 12, plus
two is 14, plus one is 15,

102
00:04:58,290 --> 00:05:02,070
and that's gonna be represented by the F.

103
00:05:02,070 --> 00:05:05,850
So now let's take a look at
how IP version six addressing

104
00:05:05,850 --> 00:05:08,880
actually uses hex, how we do a conversion,

105
00:05:08,880 --> 00:05:10,320
and then we'll look at some rules

106
00:05:10,320 --> 00:05:12,213
to make it a little bit simpler.

107
00:05:13,050 --> 00:05:16,620
An IP version six address
is made up of 128 bits

108
00:05:16,620 --> 00:05:19,350
divided into eight 16 bit blocks.

109
00:05:19,350 --> 00:05:21,240
If we compare and contrast that

110
00:05:21,240 --> 00:05:23,550
to a IP version four address,

111
00:05:23,550 --> 00:05:26,640
well IP version four
was going to be 32 bits,

112
00:05:26,640 --> 00:05:28,380
this is 128 bits.

113
00:05:28,380 --> 00:05:32,010
And IP version four had
four eight bit blocks,

114
00:05:32,010 --> 00:05:34,890
and now we have eight 16 bit blocks.

115
00:05:34,890 --> 00:05:37,440
So this is what an IP version six address

116
00:05:37,440 --> 00:05:39,900
is gonna look like in binary.

117
00:05:39,900 --> 00:05:42,150
But we're not gonna convert
it to dotted decimal.

118
00:05:42,150 --> 00:05:44,523
Instead we're gonna convert it to hex.

119
00:05:45,630 --> 00:05:48,060
So each block is going
to be converted into

120
00:05:48,060 --> 00:05:50,379
a four digit hexadecimal number

121
00:05:50,379 --> 00:05:55,379
and we're going to separate
those blocks by a colon symbol.

122
00:05:55,890 --> 00:05:57,060
So let's just do one.

123
00:05:57,060 --> 00:06:01,120
Let's take that last block
which is 0101111011111001.

124
00:06:05,910 --> 00:06:08,850
And what we're gonna do
is we're gonna divide it

125
00:06:08,850 --> 00:06:13,320
into four sections, so
four, four bit sections,

126
00:06:13,320 --> 00:06:17,013
so 0101, 1110,

127
00:06:18,002 --> 00:06:21,540
1111 and 1001.

128
00:06:21,540 --> 00:06:24,030
Again, it's this last
block we're working with.

129
00:06:24,030 --> 00:06:27,753
And then we're going to convert
each of those into a hex.

130
00:06:28,590 --> 00:06:33,570
So binary 0101 we know is
going to be five, right,

131
00:06:33,570 --> 00:06:35,580
because it's gonna be
four plus one is five,

132
00:06:35,580 --> 00:06:38,973
and five in hex is five.

133
00:06:40,110 --> 00:06:44,190
Binary 1110 is gonna be 14, right?

134
00:06:44,190 --> 00:06:47,716
Eight plus four is 12 plus two is 14.

135
00:06:47,716 --> 00:06:52,716
Decimal 14 is going to be hex of E.

136
00:06:52,800 --> 00:06:53,883
We come down here.

137
00:06:55,290 --> 00:06:59,935
1111 in binary is going
to be 15 in decimal.

138
00:06:59,935 --> 00:07:02,370
Right it's gonna be eight plus four is 12

139
00:07:02,370 --> 00:07:05,430
plus two is 14, plus one is 15,

140
00:07:05,430 --> 00:07:08,403
and that's gonna be
represented by F in hex.

141
00:07:09,420 --> 00:07:13,260
And then nine is 1001, right,

142
00:07:13,260 --> 00:07:14,670
that's decimal nine, right?

143
00:07:14,670 --> 00:07:16,140
Eight plus one.

144
00:07:16,140 --> 00:07:20,760
And nine is gonna be
represented by nine in hex.

145
00:07:20,760 --> 00:07:24,030
So that binary block, that 16 bit block,

146
00:07:24,030 --> 00:07:28,320
when we divide it into
four hexadecimal digits,

147
00:07:28,320 --> 00:07:31,533
we're gonna end up with 5EF9.

148
00:07:33,150 --> 00:07:38,150
And we converted this entire
address from binary to hex.

149
00:07:39,839 --> 00:07:42,273
Here is what our conversion would be,

150
00:07:43,230 --> 00:07:45,720
which is better, but still pretty long.

151
00:07:45,720 --> 00:07:48,300
So let's look at three
rules to try to make

152
00:07:48,300 --> 00:07:51,360
that even a more manageable address.

153
00:07:51,360 --> 00:07:53,430
This is the address we're
starting with right here,

154
00:07:53,430 --> 00:07:54,630
and we're gonna again try to make it

155
00:07:54,630 --> 00:07:56,700
a little bit more manageable.

156
00:07:56,700 --> 00:08:00,600
Our first rule is we can
discard leading zeros.

157
00:08:00,600 --> 00:08:05,600
So we have 0063, We can
discard the two leading zeros

158
00:08:06,600 --> 00:08:09,033
and just end up with 63.

159
00:08:10,470 --> 00:08:11,640
In rule two,

160
00:08:11,640 --> 00:08:14,670
if two or more blocks
contain consecutive zeros,

161
00:08:14,670 --> 00:08:16,140
we can omit them all

162
00:08:16,140 --> 00:08:20,100
and we can replace them
with a double colon symbol.

163
00:08:20,100 --> 00:08:22,240
And note, you can only do this once

164
00:08:23,310 --> 00:08:27,620
so we have two blocks of
four zeros, 0000:0000,

165
00:08:28,920 --> 00:08:33,810
and what we can do is we
can instead replace them

166
00:08:33,810 --> 00:08:35,163
with the double colon.

167
00:08:36,540 --> 00:08:39,900
And lastly, rule three,
which is blocks of zeros

168
00:08:39,900 --> 00:08:43,110
can be replaced only once
with that double colon,

169
00:08:43,110 --> 00:08:45,270
so if there are still blocks of zeros,

170
00:08:45,270 --> 00:08:48,420
they can be shrunk down to a single zero.

171
00:08:48,420 --> 00:08:51,450
So we have one more block
here of the four zeros.

172
00:08:51,450 --> 00:08:55,140
We can shrink it down to a single zero.

173
00:08:55,140 --> 00:08:57,450
Which means in the end we could take

174
00:08:57,450 --> 00:09:00,690
this relatively long address, right here,

175
00:09:00,690 --> 00:09:03,903
and we can make it a
little bit more manageable.

176
00:09:05,070 --> 00:09:07,590
And now you know how to convert

177
00:09:07,590 --> 00:09:11,850
from binary to decimal to hex,

178
00:09:11,850 --> 00:09:15,450
and three rules for making
our IP version six address

179
00:09:15,450 --> 00:09:17,430
a little bit more manageable.

180
00:09:17,430 --> 00:09:18,360
And that my friends

181
00:09:18,360 --> 00:09:21,453
is a closer look at IP
version six addressing.
