3Com 3C888 User Guide - Page 141

What is a Subnet Mask?, Subnet Mask Applied to IP Address in a Class C Network

Page 141 highlights

What is a network? 141 reserved for other purposes). By contrast, a Class A network's IP address allocates eight bits for the network number and 24 bits for the local address, allowing for a possible combination of 16,777,214 (224-2) local addresses. To return to the postal analogy, just as a street address refers to the set location or residence itself and not to the occupant, who may change over time, an IP address refers to a device's location and not the device itself. Thus, for example, if a PC is relocated to another area of the same network, it does not retain the same IP address. What is a Subnet Mask? A subnet mask is a pattern of 32 binary digits (ones or zeroes) which is transmitted alongside an IP address to instruct certain routing devices (namely, internal routers within private organizations, as opposed to public, Internet routers) to read or interpret the IP address in an alternate way. Specifically, a subnet mask instructs a routing device to take the host number portion of the IP address and further subdivide it into two smaller segments: a subnet number and an even shorter host number. Where this subdivision occurs depends upon the pattern of ones vs. zeros in the subnet mask. That is, within the string of the subnet mask's 32 bits, the point at which the ones end and the zeroes begin is the point at which the subdivision is made. The resulting subnet number is then added to the end of the original network number, such that a new, longer network number is temporarily derived. The mechanism of a subnet mask is analogous to a colored lens used in an optician's test to blot out one half of a two-toned color pattern in order to reveal a second, sub-pattern. Just as the colored lense is used to "mask" all of one color, the string of ones in a subnet mask is used to mask any bit in the IP address that corresponds to a one in the subnet mask, when the address and mask are matched up against one another. This idea is illustrated in Figure 70, which shows a subnet mask in a Class C network. Subnet Mask Applied to IP Address in a Class C Network Network Number (24 bits) Host Number (8 bits) IP Address 11 0 0 0 0 0 0 . 1 0 1 0 1 0 0 0 . 0 0 0 0 0 0 0 1 . 0 0 0 0 0 0 0 1 (as read by external router) Subnet Mask 11111111 . 11111111 . 11111111 . 111 0 0 0 0 0 IP Address (as read by internal router, through "lense" of Subnet Mask) 11 0 0 0 0 0 0 . 1 0 1 0 1 0 0 0 . 0 0 0 0 0 0 0 1 . 0 0 0 0 0 0 0 1 (New) Network Number (27 bits) Subnet Number (3 bits) (New) Host Number (5 bits) Bits "masked" by ones are read as part of (New) Network Number Bits left unmasked by zeroes are read as part of (New) Host Number Figure 70 Subnet Masking

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168

What is a network?
141
reserved for other purposes). By contrast, a Class A network’s IP address allocates
eight bits for the network number and 24 bits for the local address, allowing for a
possible combination of 16,777,214 (2
24
-2) local addresses.
To return to the postal analogy, just as a street address refers to the set location or
residence itself and not to the occupant, who may change over time, an IP address
refers to a device’s location and not the device itself. Thus, for example, if a PC is
relocated to another area of the same network, it does not retain the same IP
address.
What is a Subnet Mask?
A subnet mask is a pattern of 32 binary digits (ones or zeroes) which is transmitted
alongside an IP address to instruct certain routing devices (namely, internal routers
within private organizations, as opposed to public, Internet routers) to read or
interpret the IP address in an alternate way.
Specifically, a subnet mask instructs a routing device to take the
host number
portion of the IP address and further subdivide it into two smaller segments: a
subnet number a
nd an even shorter
host number
. Where this subdivision occurs
depends upon the pattern of ones vs. zeros in the subnet mask. That is, within the
string of the subnet mask’s 32 bits, the point at which the ones end and the
zeroes begin is the point at which the subdivision is made. The resulting
subnet
number
is then added to the end of the original
network number
, such that a
new, longer network number is temporarily derived.
The mechanism of a subnet mask is analogous to a colored lens used in an
optician’s test to blot out one half of a two-toned color pattern in order to reveal a
second, sub-pattern. Just as the colored lense is used to “mask” all of one color,
the string of ones in a subnet mask is used to mask any bit in the IP address that
corresponds to a one in the subnet mask, when the address and mask are
matched up against one another. This idea is illustrated in Figure 70, which shows
a subnet mask in a Class C network.
Figure 70
Subnet Masking
Subnet Mask Applied to IP Address in a Class C Network
11000000.10101000.00000001.00000001
11000000.10101000.00000001.000
00001
11111111.11111111.11111111.11100000
Network
Number
(24 bits)
Host
Number
(8 bits)
(New)
Network
Number
(27 bits)
(New)
Host
Number
(5 bits)
Subnet
Number
(3 bits)
IP Address
(as read by external router)
Subnet Mask
IP Address
(as read by internal router,
through "lense" of Subnet Mask)
Bits left unmasked
by zeroes
are read as part of
(New) Host Number
Bits "masked"
by ones
are read as part of
(New) Network
Number