Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,530 --> 00:00:06,200
Now, what about subnet masks, I've mentioned subnet masks a few times.
2
00:00:06,530 --> 00:00:07,960
What is the subnet mask?
3
00:00:08,270 --> 00:00:09,170
What does it do?
4
00:00:09,770 --> 00:00:18,080
Well, a subnet mask is used to determine which part of an IP address is the network portion and which
5
00:00:18,080 --> 00:00:20,360
part of the address is the host portion.
6
00:00:21,050 --> 00:00:28,400
This allows a PC, for example, to determine whether a device that it wants to communicate with is
7
00:00:28,400 --> 00:00:31,380
a remote device or a local device.
8
00:00:32,210 --> 00:00:33,350
So here's an example.
9
00:00:33,650 --> 00:00:41,030
We have a PC with IP address, 10.1, that one, that one and another PC with an IP address of 10.1
10
00:00:41,030 --> 00:00:48,110
to Tutut one when the PC on the left wants to forward traffic to the PC on the right with IP address.
11
00:00:48,110 --> 00:00:55,760
10.1 the two that one does the PC for the traffic on to the local segment or does it forward it to its
12
00:00:55,760 --> 00:00:56,720
default gateway?
13
00:00:57,560 --> 00:01:05,000
If these two devices are in the same subnet, they can communicate directly without the use of a default
14
00:01:05,000 --> 00:01:05,540
gateway.
15
00:01:06,260 --> 00:01:12,770
But if they are on different subnets, the PCs will forward their traffic to their default gateways,
16
00:01:13,040 --> 00:01:18,860
which will do the inter VLAN routing if they're on the local LAN or local area network as an example,
17
00:01:19,040 --> 00:01:23,740
or the traffic if the traffic is forwarded to a traditional router.
18
00:01:24,260 --> 00:01:26,300
So a layer three switch may do.
19
00:01:26,300 --> 00:01:33,860
The routing between two villans way router may route the traffic between these two devices if they are
20
00:01:33,860 --> 00:01:35,000
in different subnets.
21
00:01:35,420 --> 00:01:42,560
But how would you determine if these two devices are on the same subnet or if they're on different subnets
22
00:01:43,010 --> 00:01:43,150
now?
23
00:01:43,300 --> 00:01:47,200
I'm going to explain this in more detail in the next few minutes.
24
00:01:47,840 --> 00:01:56,760
But as an example, 10.1 dot dot one and 10.1 or two dot one are in the same subnet if they are using
25
00:01:56,900 --> 00:01:58,610
a slash 16 mosque.
26
00:01:59,160 --> 00:02:06,660
However, if they're using a 24 mosque, that means that the devices are on different subnets.
27
00:02:07,310 --> 00:02:09,500
So let me explain that in more detail.
28
00:02:09,830 --> 00:02:17,210
A network mosque allows a device to determine once again which portion of the address is the host portion
29
00:02:17,720 --> 00:02:20,820
and which portion of the address is the network portion.
30
00:02:21,440 --> 00:02:29,120
This allows a local PC as an example to determine whether the device it wants to communicate with is
31
00:02:29,120 --> 00:02:38,270
on a remote network and is thus reachable via the default gateway, or if the device is on the local
32
00:02:38,270 --> 00:02:43,040
subnet and therefore does not require the use of a default gateway.
33
00:02:43,550 --> 00:02:47,150
So S.P.C.A. and PTB are in the same subnet.
34
00:02:47,510 --> 00:02:54,290
No default gateway is required, but if they are on different subnets, then a default gateway would
35
00:02:54,290 --> 00:02:59,050
typically be required to do the routing between the two pieces.
36
00:02:59,540 --> 00:03:02,360
So that's essentially what a network mosque does.
37
00:03:03,140 --> 00:03:11,510
Now, as I've explained, plus A, B and C networks have default mosques, which are also known as natural
38
00:03:11,510 --> 00:03:12,140
mosques.
39
00:03:12,710 --> 00:03:20,630
In a class I address, the first octet is the network in a class B address, the first talking octets
40
00:03:20,630 --> 00:03:27,200
or network, and with a classy address, the first three octets of the network portion.
41
00:03:27,740 --> 00:03:32,000
I'll explain more complicated subnet masks in the subnet videos.
42
00:03:32,330 --> 00:03:36,170
But let's first start with some simple examples.
43
00:03:37,160 --> 00:03:45,320
In this example, we have a class A network that hasn't been submitted in a class A network.
44
00:03:45,470 --> 00:03:49,420
The default mosque is too far, 5.0 or 020.
45
00:03:49,910 --> 00:03:57,290
So if we look at a address such as 10.1, that one, that one, and convert that into binary, it's
46
00:03:57,290 --> 00:03:58,730
going to look as follows.
47
00:03:59,710 --> 00:04:08,830
Now, look at the following mosque, 2005 in binary equates to eight binary ones, zero in decimal equates
48
00:04:08,830 --> 00:04:10,760
to eight binary zeros.
49
00:04:11,260 --> 00:04:19,990
So converting the mosque into binary shows us that the network portion consists of contiguous ones or
50
00:04:19,990 --> 00:04:23,440
continuous ones, starting from the left hand side.
51
00:04:24,130 --> 00:04:33,610
A one in binary in the network mosque indicates network a zero in binary in the network mosque indicates
52
00:04:33,610 --> 00:04:34,090
host.
53
00:04:34,600 --> 00:04:40,870
So in this example, this portion of the address is network and this portion of the address is host.
54
00:04:41,290 --> 00:04:43,870
Hence this device with IP address.
55
00:04:43,870 --> 00:04:44,890
10.1 that one.
56
00:04:44,890 --> 00:04:49,010
That one is on network ten dot 0.01 zero.
57
00:04:49,300 --> 00:04:52,720
This is the network portion and this is the host portion.
58
00:04:53,230 --> 00:04:58,710
This device with IP address 10.1 not one dot one is on Network ten.
59
00:04:59,380 --> 00:05:06,640
So when working out the network and hosting portions of an address, follow these two simple rules.
60
00:05:06,790 --> 00:05:15,490
Any address bits that have a corresponding mosque but set to one in binary represents the network.
61
00:05:16,060 --> 00:05:23,350
Any address bits that have a corresponding mosque but set to zero represents the host.
62
00:05:23,680 --> 00:05:28,670
So one in binary means network zero in binary means host.
63
00:05:29,410 --> 00:05:35,590
So in this example, ten is the network because there are ones in the mosque in binary.
64
00:05:35,890 --> 00:05:38,490
So the network ID is set to ten.
65
00:05:38,830 --> 00:05:42,210
Notice these octets are populated by binary zeros.
66
00:05:42,220 --> 00:05:43,420
That means host.
67
00:05:43,930 --> 00:05:48,050
So the host ID is equal to one one one.
68
00:05:48,280 --> 00:05:50,500
So in summary, the network is 10.
69
00:05:50,830 --> 00:05:54,410
The host portion of the address is one dot one one.
70
00:05:55,000 --> 00:05:56,130
Here's another example.
71
00:05:56,320 --> 00:06:04,810
Remember any address bits that have a corresponding mosque but six to one in binary represents network.
72
00:06:05,140 --> 00:06:12,780
Any address, bits that have a corresponding mosque but set to zero in binary represent node ID.
73
00:06:13,270 --> 00:06:15,280
So here we've got a class address.
74
00:06:15,490 --> 00:06:16,450
One dot one.
75
00:06:16,450 --> 00:06:16,840
That one.
76
00:06:16,840 --> 00:06:17,440
That one.
77
00:06:17,740 --> 00:06:19,390
But note the difference.
78
00:06:19,780 --> 00:06:24,480
The network mosque in this case is to find 5.2 5.0.
79
00:06:24,490 --> 00:06:25,040
That's zero.
80
00:06:25,510 --> 00:06:31,390
So converting one dot one, that one good one to binary gives us the following.
81
00:06:32,140 --> 00:06:38,350
Taking the network mosque and converting that to binary gives us the following notice.
82
00:06:38,350 --> 00:06:44,860
To find five equates to eight binary ones, which therefore means that this portion of the address is
83
00:06:44,860 --> 00:06:45,580
a network.
84
00:06:45,850 --> 00:06:48,880
So the network ID is one dot one.
85
00:06:49,030 --> 00:06:55,240
And looking at the remaining part of the address, which is populated with binary zeros in the network
86
00:06:55,240 --> 00:07:00,250
mosque, means that one dot one is the host portion of the address.
87
00:07:00,790 --> 00:07:10,120
In other words, the network is 1.0 1.0 arrow with a host portion of one dot one on that network.
88
00:07:10,720 --> 00:07:14,380
The mosque is too 5.5 5.0 to zero.
89
00:07:14,890 --> 00:07:22,030
In this example, it's easy to see the network portion of the address because we have to 5.5 five in
90
00:07:22,030 --> 00:07:23,140
the network mosque.
91
00:07:23,650 --> 00:07:29,290
Just be aware that things can get a lot more complicated than what we're seeing in these examples.
92
00:07:29,590 --> 00:07:36,040
You'll see that when we get to the subnet videos, these two examples are simple because it's easy to
93
00:07:36,040 --> 00:07:41,410
recognize which portion is a network and which portion is host in the subediting videos.
94
00:07:41,410 --> 00:07:44,620
I'm going to show you much more complicated examples.
95
00:07:45,070 --> 00:07:51,520
And in those examples, it's more difficult to determine which portion is network and which portion
96
00:07:51,520 --> 00:07:52,030
is host.
97
00:07:52,600 --> 00:07:59,080
So in summary, how does a device know whether another device is local or remote to itself?
98
00:08:00,120 --> 00:08:06,390
So the first thing it will do is check the network portion of its local address and then compare that
99
00:08:06,390 --> 00:08:12,720
to the address of the other host, if the network portion of the address is the same, the local device
100
00:08:12,720 --> 00:08:16,250
knows that the other device is local to itself.
101
00:08:16,710 --> 00:08:22,680
If the network portion is not the same, the local device knows that the other device is remote.
10258
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.