Create a Subnet

MicroCourse
Time
55 minutes
Difficulty
Beginner
CEU/CPE
3

Video Description

This lesson covers decimal to binary to hexadecimal conversion. This knowledge is very handy to know prior to going into something such as sub netting. Hexadecimal conversion is also a good skill to have as IP6 is becoming more common. This session offers participants step by step instructions in how to use numbers to convert them into bytes of data. To convert a decimal number into binary, we look to see how the numbers fit together (will 128 fit into 211?). The number 211 in decimal is expressed as 11.01.00.11. Essentially, you are looking to see if a value will fit inside a decimal number. To take binary to hexadecimal is relatively simple via running it through binary.

Video Transcription

00:04
Hello, Siberians. I'm Kelly Hander Han and welcome to session Wednesday. This week we're gonna be discussing decimal toe binary Hexi decimal conversion. And this will be very helpful for you in various ways.
00:18
When we go into the topic next week about submitting, it's very helpful to know binary beforehand because binary plays a really big part of how we split up our networks,
00:28
but also with I p V six on the horizon. Hexi decimal is gonna be important as well. So we're gonna cover all three of those.
00:34
All right, so let's go back and let's talk a little bit about how we learned decimal, right? So if you go back, if you learn the way I did, teacher would come in and write 4000
00:46
579 up on the board
00:49
and she'd say, OK, this is the Ones column. This is the tens column hundreds column,
00:57
and this is the thousands
00:59
now.
01:00
So we have the reason we use this. Columns were based on 10.
01:04
So this one's column
01:07
10 to the zero power.
01:10
Anything to the zero power is one, eh? So we start with a zero power one, then this is 10 to the first into the second,
01:19
10 to the third and so on. So that's where I get my columns. And then she'd say, Well, this has 41 thousand's 51 hundred's, seven tens and nine ones. It's how we learn decibels. Okay, so we're gonna learn binary much the same way we learned, decimal.
01:36
So we're gonna start with 2 to 0 power, which is one
01:41
through the 1st 2 to the second
01:44
four
01:45
third.
01:47
Hey,
01:48
to the 4th 16
01:53
32
01:53
2 to 6.
01:57
Better. 60 64.
02:01
And to do the seventh is 1 28 Now, if you'll notice. 12345678 Placeholders. The reason we're stopping there is eight bits are in a bite. So we're gonna talk about numbers and how we express them using one byte of data.
02:19
All right, so let's pick a number between one and 2 51 to 55.
02:23
I'll just, uh, pick
02:25
211 that's why.
02:29
All right, so the way we convert this decimal number two binary,
02:35
we've got to look at the two values with binary
02:38
zero equals. No
02:42
one equals yes,
02:44
and that the way to think about this Course in computers were looking at on off or presence of signal. Absence of signals. But for our purposes, would you say nowhere? Yes. All right. So we'll 1 28
02:55
digs
02:59
inside to 11?
03:00
No,
03:01
Uh, actually, yes.
03:05
Momentary brain freeze there. All right, so 1 28 all fit. So what we have to do is account for it Will subtract it out.
03:10
11 months. Three. That's too. Okay, so it'll fit once with the remainder of 83.
03:17
Well, 64 fit in the 83. Yes, it will.
03:22
We can't afford out subtracted.
03:25
And we get 19.
03:28
Well, 30 to fit in the 19. No,
03:32
but 16 will
03:36
tracked out. We get three left. Eight won't fit into 34 won't fit into three to will
03:45
the remainder one and one will. So the number 2 11 and decimal is expressed as 1101
03:53
011
03:54
So ultimately, what we're going through left to right. Well, this value fit inside my decimal number. If so, the values one and then we account for it. If it won't been in, we use heroes. Now going back to decimal is just a Z Z. If I pay just making up a number here,
04:15
they just making up a binary number and we just take it, draw her columns
04:21
and then we add among the ones column two or
04:27
hey,
04:28
16
04:30
32
04:30
64
04:32
and 1 28
04:34
All right, so 64 plus 32 is 96.
04:42
We're at eight to that. Bringing us up to 102
04:46
three or four
04:47
Math in front of strangers. Not easy.
04:50
Ah 1081 of nine. So that's the value in decibels. So going back and forth between decimal and by end, binary really isn't that bad as long as you understand the concept.
05:02
Now, the next thing we want to do is we want to take this another step and we want ad Hexi decimal into the mix because, like I said, I p version six is gonna be using Hexi decimal Mac addresses. You texted decimal. So it's always good to know that additional step.
05:17
Okay, now taking by Neary Toe Hex
05:21
is pretty easy. Taking decimal the hex is much harder.
05:28
So what I recommend for you is if you want to take decimal Hexi decimal
05:32
running through binary first.
05:34
Okay, so convert your decimal into binary and then binary into decibel. Okay, so I'm gonna show you. Let's just look at this value.
05:44
Um,
05:46
up here on the board.
05:48
Okay? So, 1 28 with 64. That's 1 92
05:54
It's 98 108
05:56
1 10 1 11 to 11. All right, so we said that's the number to 11. So, to 11 if we translated into binary, that's what we get. Now, the thing to understand about Hex A desk.
06:08
Hexi Decimal is based on 16 as its number insisted.
06:13
So what we have to look at with hexes. The numbering system contains any of these valid numbers.
06:20
123456789 10 11 12 13 14 50.
06:29
I have zero in there too, is about you. All right. So our choices are
06:34
from 0 to 9 and then a B C d e f.
06:40
So what we want to do is when you've got a number in binary,
06:45
let's just bring this out.
06:46
111
06:48
0011
06:50
What we do is we take this bite
06:54
and split it into what we call nibbles. A nibble is half a bite.
06:59
I don't make that up. It really is.
07:00
And then we work with just these four bids at a time.
07:05
Okay, So if we were looking at this standard in binary, this would be the Ones column. The twos, the force and the ace.
07:15
So what this value is two plus one would be represented as a three.
07:20
Then we go over this side. 1248
07:26
eight plus fours. 12. We don't have a 12 but what we do, we have That would be like 10 11 12. So value is see if that makes sense. You know, we're so used to decimal. It's a little bit odd to go, you know, 789 A. But,
07:44
you know, in binary be represented his 10 11 12 13 14.
07:47
So when we look at the number 2 11 in decimal,
07:51
we run it through binary, and we get 1101011 Then we split that up into two sections. Evaluate each section independently, and for the value of 2 11
08:05
we now get the hex a decimal value of C three.
08:09
So I hope this has been helpful with for you. You may want to practice up a little bit. Windows has a scientific calculator that you can use to sort of test to make sure your calculations air. Good. One thing that this will be particularly helpful for when we go into the next section on sub netting, which will be covered in a later sessions.
08:28
Really helpful to know binary
08:30
and no decimal conversion from binary decibel. That'll be used to a degree. So I hope this helps you feel free to comment on your experiences here and again. I hope this teaches you a little bit of something about decimal binary binary.

Up Next

Create a Subnet

Learning to subnet fast and accuratey is key to computer networking. Progress beyond the basics of binary and master this fundamental skill in less than an hour.

Instructed By

Instructor Profile Image
Anthony Harris
Systems Analyst and Administrator at SAIC
Instructor