1 00:00:00,000 --> 00:00:00,499 2 00:00:00,499 --> 00:00:02,710 I'd like you to imagine that you and I have 3 00:00:02,710 --> 00:00:04,190 walked into a showroom floor. 4 00:00:04,190 --> 00:00:06,294 It could be cars or boats or what have you, 5 00:00:06,294 --> 00:00:08,210 and on one of the items that we're looking at, 6 00:00:08,210 --> 00:00:13,510 it has a price tag, and it says this 45,239. 7 00:00:13,510 --> 00:00:16,390 And I want to ask you, how much is that? 8 00:00:16,390 --> 00:00:18,730 I'm talking about the actual number itself. 9 00:00:18,730 --> 00:00:21,340 Now you might be saying, well, Keith, this is really obvious. 10 00:00:21,340 --> 00:00:24,670 It's 45,239. 11 00:00:24,670 --> 00:00:25,670 That's the number. 12 00:00:25,670 --> 00:00:28,600 And how did you get that so quickly? 13 00:00:28,600 --> 00:00:30,610 And the reality is is because we've 14 00:00:30,610 --> 00:00:35,340 been using base 10 numbering system for all of our lives. 15 00:00:35,340 --> 00:00:36,920 It goes something like this. 16 00:00:36,920 --> 00:00:38,230 We have several positions here. 17 00:00:38,230 --> 00:00:41,170 For example, the nine is in the ones position, 18 00:00:41,170 --> 00:00:43,510 and the three is in the tens position, 19 00:00:43,510 --> 00:00:45,790 and the two is in the one hundredths 20 00:00:45,790 --> 00:00:49,810 position, the five, right here, is in the one thousands 21 00:00:49,810 --> 00:00:54,850 position, and therefore is in the ten thousands position. 22 00:00:54,850 --> 00:00:57,910 And all we're doing, because we use a base 10 numbering 23 00:00:57,910 --> 00:01:01,390 system, is a first number is always a 1, 24 00:01:01,390 --> 00:01:03,880 and then the next position is times 10, and times 10, 25 00:01:03,880 --> 00:01:05,290 and times 10, times 10. 26 00:01:05,290 --> 00:01:07,870 In fact, we could go all the way down just 27 00:01:07,870 --> 00:01:11,020 continuing to multiply that placeholder by 10, by 10, 28 00:01:11,020 --> 00:01:11,900 by 10. 29 00:01:11,900 --> 00:01:16,390 It was four 10 thousands, it was five one thousands, 30 00:01:16,390 --> 00:01:22,190 it was two one hundreds, it was three tens, and nine ones. 31 00:01:22,190 --> 00:01:24,062 But this is so second nature to us, 32 00:01:24,062 --> 00:01:25,770 we didn't have to break it out like that. 33 00:01:25,770 --> 00:01:27,650 In fact, when we count, for example, 34 00:01:27,650 --> 00:01:29,225 our numbers go through 0 through 9. 35 00:01:29,225 --> 00:01:32,370 So we have 10 distinct numbers to play with, 0 through 9. 36 00:01:32,370 --> 00:01:37,200 And when we count, we do 0, 1, 2, 3, 4, 5, 6, 7, 8, 37 00:01:37,200 --> 00:01:39,330 9, and what do we do next? 38 00:01:39,330 --> 00:01:42,050 We simply carry the one into the next position, 39 00:01:42,050 --> 00:01:43,520 and we put a 0 here. 40 00:01:43,520 --> 00:01:48,530 So 1, 0, in decimal represents one 10, and no ones, 41 00:01:48,530 --> 00:01:49,640 for a total of 10. 42 00:01:49,640 --> 00:01:51,151 And then we go to 11 and then 12. 43 00:01:51,151 --> 00:01:53,150 And then, if we get all the way to, for example, 44 00:01:53,150 --> 00:01:57,710 999 by continuing counting, and we need to go one more, 45 00:01:57,710 --> 00:02:00,650 we carry that one again, and we have 1,000. 46 00:02:00,650 --> 00:02:04,100 Now you might be asking, OK, Keith, I totally get this. 47 00:02:04,100 --> 00:02:05,335 This is base 10. 48 00:02:05,335 --> 00:02:08,000 The numbering system most humans on the planet 49 00:02:08,000 --> 00:02:10,220 have been using our entire lifetimes. 50 00:02:10,220 --> 00:02:13,745 So what does that got to do with this thing called binary? 51 00:02:13,745 --> 00:02:15,770 Well, binary is simply a different type 52 00:02:15,770 --> 00:02:17,120 of numbering system. 53 00:02:17,120 --> 00:02:21,050 Instead of using base 10, binary uses base two. 54 00:02:21,050 --> 00:02:22,970 So with base 10, we had numbers of 0 55 00:02:22,970 --> 00:02:27,030 through 9, which are 10 individual separate numbers. 56 00:02:27,030 --> 00:02:30,340 And with base 2, we have 0 through one. 57 00:02:30,340 --> 00:02:33,710 With a base 2 numbering system, the first position 58 00:02:33,710 --> 00:02:36,680 over here on the right is a value of 1. 59 00:02:36,680 --> 00:02:39,200 And then, as we move left, this next position 60 00:02:39,200 --> 00:02:43,310 is simply this first number times the base. 61 00:02:43,310 --> 00:02:45,710 So in the case of binary, it's base 2, 62 00:02:45,710 --> 00:02:47,800 this would be 1 times 2. 63 00:02:47,800 --> 00:02:50,450 I'll put that right here, and that would be 2. 64 00:02:50,450 --> 00:02:53,870 And this next position over here, this next placeholder 65 00:02:53,870 --> 00:02:57,470 is going to be this number times 2, so that would be 4. 66 00:02:57,470 --> 00:02:59,840 And as we go left, it would be this number 67 00:02:59,840 --> 00:03:01,740 times 2, which would be 8. 68 00:03:01,740 --> 00:03:04,910 And then, times 2, 16, and times 2, 32. 69 00:03:04,910 --> 00:03:07,210 And times 2 again, which would be 64. 70 00:03:07,210 --> 00:03:09,510 And times 2 again would be 128. 71 00:03:09,510 --> 00:03:11,270 So with a base 10 numbering system, 72 00:03:11,270 --> 00:03:17,360 it went one, and then times 10, times 10, times 10, et cetera. 73 00:03:17,360 --> 00:03:21,110 With base 2, we start with one, and it's times 2, times 2, 74 00:03:21,110 --> 00:03:23,420 times 2, times 2, et cetera. 75 00:03:23,420 --> 00:03:26,030 It's also important to note that although we could 76 00:03:26,030 --> 00:03:29,240 go a really long way left here, we really only need 77 00:03:29,240 --> 00:03:32,630 to worry about eight positions at a time when we're dealing 78 00:03:32,630 --> 00:03:35,270 with things like IP version 4. 79 00:03:35,270 --> 00:03:39,920 I want you to write out these value positions for binary, 80 00:03:39,920 --> 00:03:41,450 and again, the way to do it is you 81 00:03:41,450 --> 00:03:43,730 start on the right with a number one, 82 00:03:43,730 --> 00:03:45,800 and then you simply take that number 83 00:03:45,800 --> 00:03:48,620 and multiply it by the base as you go left. 84 00:03:48,620 --> 00:03:50,540 So please take a moment and make sure 85 00:03:50,540 --> 00:03:52,910 that you can write this out on-demand. 86 00:03:52,910 --> 00:03:54,380 So let's take a look at an example 87 00:03:54,380 --> 00:03:56,350 of how a binary number works. 88 00:03:56,350 --> 00:03:58,310 Now in binary, there's only two numbers 89 00:03:58,310 --> 00:04:01,100 that we get to play with, and they are a 0 and a 1. 90 00:04:01,100 --> 00:04:04,790 In decimal, we had 0 through 9, 10 different positions. 91 00:04:04,790 --> 00:04:06,460 In binary, we have two. 92 00:04:06,460 --> 00:04:07,420 We have 0 and 1. 93 00:04:07,420 --> 00:04:08,795 It's sort of like a light switch. 94 00:04:08,795 --> 00:04:11,140 Either it's off or on. 95 00:04:11,140 --> 00:04:12,450 That's our only two choices. 96 00:04:12,450 --> 00:04:14,120 So if we had a binary number like this, 97 00:04:14,120 --> 00:04:21,350 that's 1, 0, 0, 0, 0, 0, 1, 1, 0, holy schnikers. 98 00:04:21,350 --> 00:04:25,490 What exactly is the value of that number to us as humans? 99 00:04:25,490 --> 00:04:28,160 And the way to figure that out would be saying OK, well, we 100 00:04:28,160 --> 00:04:33,620 have a 1 in the 128 position, so that's 128, plus 0, 101 00:04:33,620 --> 00:04:38,310 because we have no 64's, plus 0, no 32's, plus-- 102 00:04:38,310 --> 00:04:38,810 OK. 103 00:04:38,810 --> 00:04:41,510 How many 16's are we going to add to this equation? 104 00:04:41,510 --> 00:04:43,980 If your saying, well, Keith, it's like a light switch, 105 00:04:43,980 --> 00:04:44,480 right? 106 00:04:44,480 --> 00:04:45,710 It's either on or off. 107 00:04:45,710 --> 00:04:47,540 Because this is a 0, it's off, which 108 00:04:47,540 --> 00:04:50,840 means we don't have any 16's, so we're going to say 0 there, 109 00:04:50,840 --> 00:04:51,800 plus 0. 110 00:04:51,800 --> 00:04:52,580 And here we go. 111 00:04:52,580 --> 00:04:54,800 In this third position, we have a one 112 00:04:54,800 --> 00:04:57,290 on in the position that's worth four. 113 00:04:57,290 --> 00:04:58,830 So we'd add 4 there. 114 00:04:58,830 --> 00:04:59,974 And how about the 2? 115 00:04:59,974 --> 00:05:01,640 The answer is yep, we have one of those. 116 00:05:01,640 --> 00:05:04,160 So we'll add a 2 as well, and then 0. 117 00:05:04,160 --> 00:05:06,470 And then, it's simply a game of adding. 118 00:05:06,470 --> 00:05:09,320 All we're going to do, if we want to find out 119 00:05:09,320 --> 00:05:13,190 the actual value of this binary number, all we simply do 120 00:05:13,190 --> 00:05:14,310 is add these up. 121 00:05:14,310 --> 00:05:20,030 So it's 128 plus 4 plus 2, and that's it. 122 00:05:20,030 --> 00:05:23,210 So 8 plus 4 is 12 plus 2 more is 14. 123 00:05:23,210 --> 00:05:25,380 We'll carry our decimal one right there. 124 00:05:25,380 --> 00:05:26,780 That's a 4. 125 00:05:26,780 --> 00:05:30,830 2 plus 1 is 3, and then we have a 1. 126 00:05:30,830 --> 00:05:33,620 And so the actual value of this binary number, 127 00:05:33,620 --> 00:05:38,540 1, 0, 0, 0, 0, 1, 1, 0, is 134. 128 00:05:38,540 --> 00:05:40,820 I hope this has been informative for you, 129 00:05:40,820 --> 00:05:43,245 and I'd like to thank you for viewing. 130 00:05:43,245 --> 00:05:43,745