HTTP WWW - Dialogic
HTTP WWW - Dialogic
However, the course also offers a fast track to getting the advantages of
subnetting on local area networks without having to do all the calculations
yourself. If this is what you are looking for, you might want to jump directly
to the last chapter in this course: ‘The fast track to the advantages of
subnetting’.
IP addresses
What is an IP address?
http://www.dialogic.com/support/helpweb/safepipe/SP/courses/ip/index.htm 11/13/2008
IP addresses and Subnetting Page 2 of 15
Exactly where the network part ends and the host part begins is calculated
by routers, using a so-called subnet mask as a deciphering key.
All hosts on a given network share the same network number, but each of
them must have a unique host number:
http://www.dialogic.com/support/helpweb/safepipe/SP/courses/ip/index.htm 11/13/2008
IP addresses and Subnetting Page 3 of 15
Classes of IP addresses
Class C addresses allow 254 hosts per network and are typically used by
smaller and middle-sized companies. Class B networks allow a maximum of
16,384 hosts, while Class A networks allow more than 16 million hosts. As a
consequence, Class A networks are only used by really large organisations.
http://www.dialogic.com/support/helpweb/safepipe/SP/courses/ip/index.htm 11/13/2008
IP addresses and Subnetting Page 4 of 15
The table below shows the range of dotted-decimal values that can be
assigned to each of the three address classes. An x represents the host
number field of the address which is assigned by the network administrator.
There are two types of IP addresses – those which are globally routable
(included in the routing tables on the Internet), and those which have been
set aside for private networks. It is generally recommended that
organisations use IP addresses from the blocks of private network
addresses for hosts that require IP connectivity within their company
network, but do not require external connections to the global Internet.
The three blocks of IP addresses which have been reserved for private
networks are:
http://www.dialogic.com/support/helpweb/safepipe/SP/courses/ip/index.htm 11/13/2008
IP addresses and Subnetting Page 5 of 15
There are no official rules for when to use which of the three private
network IP address blocks, but generally the one of the most suitable size is
used. For obvious reasons there is no need to use 10.x.x.x if it is
unthinkable that your LAN will ever grow to more than 254 hosts. However,
when using private addresses the network administrator can be liberal on
the usage of the addresses when assigning them to the different parts of a
network, as the strict rules that govern public IP address assignment do not
apply.
http://www.dialogic.com/support/helpweb/safepipe/SP/courses/ip/index.htm 11/13/2008
IP addresses and Subnetting Page 6 of 15
Subnetting
What is subnetting?
http://www.dialogic.com/support/helpweb/safepipe/SP/courses/ip/index.htm 11/13/2008
IP addresses and Subnetting Page 7 of 15
Subnet masks
The typical subnet masks used for Class A, B and C addresses are as
follows:
All the 0’s in the subnet mask specify that this part in a corresponding IP
address is the host portion, while the 1’s indicate that the corresponding
bits in the IP address constitute the network portion.
The three subnet masks above set the change from network to host portion
at the end of a whole octet – Class A after one octet, Class B after two
octets, and Class C after three. However, a subnet masks does not have to
follow the address classes, but can specifiy a host portion that is not a
whole octet.
The purpose of having subnet masks defining networks is that the technical
devices that the network is build from will be able to determine if traffic
should be routed out of the network or kept within it. Using a mask saves
the routers from having to handle the entire 32-bit address, because they
can simply look at the bits selected by the mask (and thus not worry about
http://www.dialogic.com/support/helpweb/safepipe/SP/courses/ip/index.htm 11/13/2008
IP addresses and Subnetting Page 8 of 15
Internet routers use only the network number of the destination address to
route traffic to a subnetted environment. Subnetting, thus, also has the
advantage that it keeps the size of the routing tables on the Internet down
because Internet routers only need to know the one common network
address for all the individual computers and devices on the different
subnets. The route from the Internet to any subnet of a network is the
same, no matter which subnet the destination host is on, namely that of the
mother network. From there, the local network router(s) divides the
communication out into individual subnets and to the individual hosts on
these subnets.
Subnetting keeps the size of the routing tables on the Internet down, as the
Internet routers only use the network number of a subnetted environment
to route traffic to any of the subnets
The network number is the part of the IP address that all hosts on a
network share. Network numbers are entered in routing tables and used by
routers to direct traffic between networks. The network number, or
extended network prefix, of an IP address is found by using the subnet
mask to mask off the host portion of the IP address.
An example:
You choose the IP address 192.168.1.1 and the subnet mask
255.255.255.0. The above IP address and subnet mask written in their
binary notation looks as follows:
http://www.dialogic.com/support/helpweb/safepipe/SP/courses/ip/index.htm 11/13/2008
IP addresses and Subnetting Page 9 of 15
In the above example, the host portion is thus all the bits in the first three
octets, which in decimal numbers is written 192.168.1.0.
As a consequence, the host range that a subnet mask defines will always be
either 2 (21 – corresponding to a situation where only the last bit defines
hosts), 4(22 – corresponding to a situation where the last two bits define
hosts), 8 (23), 16(24), 32(25), 64(26), 128(27) or 256(28).
In reality, 2 must be subtracted from all the numbers of hosts above to get
the actual number of IP addresses available to use for hosts, because two
addresses, namely the address which has all-0’s in the host bits (this
network) and the address which has all 1’s in the host bits (broadcast), can
not be assigned to hosts. As a consequence, it is not possible to make a
network that consists of fewer than four IP addresses (2 hosts + the
broadcast and network addresses).
In the above example, based on the IP address 192.168.1.1 and the subnet
mask 255.255.255.0, the network address (all host bits set to 0) was
192.168.1.0. The broadcast address for this network would be
192.168.1.255 as illustrated below.
The broadcast address is the address where all the bits in the host portion
are set to 1. The broadcast address is used when you want to communicate
data to all the hosts on a network. Here follows an example of how it can be
calculated:
In our example above, the last 8 bits were hosts. As a consequence, the
broadcast address for the network 192.168.1.0 with the subnet mask
255.255.255.0 is 11000000.10101000.00000001.111111111 (host bits set
to 1) or in decimal notation: 192.168.1.255
Note: If you know the IP address segment your network consists off, the
lowest IP address is the network number, while the highest IP address is the
broadcast address.
http://www.dialogic.com/support/helpweb/safepipe/SP/courses/ip/index.htm 11/13/2008
IP addresses and Subnetting Page 10 of 15
Once you have determined the required number of subnets and hosts, the
next step is to calculate a corresponding subnet mask, which will support
the desired network structure.
In the following you will find two examples of how the subnetting of a Class
C network can be planned and the required subnet mask calculated.
Example A:
Imagine that you are setting up a network on the network number
192.168.1.0/24. You need a local area network which is going to connect a
number of workstations, servers and others devices, totalling more than 80.
To allow some slack, you set the number of required hosts to be 90. Now,
the calculation of the subnet mask can begin. The calculation is best
understood if the numbers are looked at in their binary form (see example
below).
The first step is to determine the lowest number of bits required to identify
90 hosts. Since IP addresses of hosts can only be created along binary
boundaries, the number of hosts must be created in blocks of powers of two
– 2 (21), 4 (22), 8 (23), 16 (24) and so on. In other words, we must first
determine what the lowest power is that we can lift 2 to and get a number
equal to or greater than 90. Since 27 equals 128 and 26 equals 64, we need
7 bits to designate 90 hosts. This means that the host portion of the IP
address must be the last 7 bits. An IP address consists of 32 bits all in all.
The network portion must thus consist of 32-7=25 bits. As every ‘1’ in a
subnet mask indicates that the corresponding bit in the IP address belongs
to the network portion and every ‘0’ indicates that the corresponding bit in
the IP address is part of the host portion, the corresponding subnet mask
must consist of a series of 25 1’s, followed by 7 0’s (as illustrated below).
Written in decimal notation, the subnet mask is 255.255.255.128.
http://www.dialogic.com/support/helpweb/safepipe/SP/courses/ip/index.htm 11/13/2008
IP addresses and Subnetting Page 11 of 15
The number of subnets that can be created using this subnet mask is
calculated as follows: The original network prefix was 24 bit long
(192.168.1.0/24), and the extended network prefix (network prefix +
subnet prefix) masked off by the subnet mask is 25 bits long. As a
consequence, one bit is available to designate subnets. In other words, it is
possible to create 2 (21) subnets of this given size using this subnet mask,
should we wish to do so.
Example B:
Now pretend that through an estimation of the number of subnets and hosts
that the subnet you are setting up will have to support, you have come to
the conclusion that you need to define ten subnets. The largest subnet is
required to support 10 hosts. You have again chosen to create the subnet
on the network number 192.168.1.0/24. Now, the calculation of the subnet
mask can begin.
The first step is to determine the number of bits required to define the ten
subnets. Since a network address can be subnetted only along binary
boundaries, subnets must be created in blocks of powers of two 2 – 2, 4, 8,
16 and so on. Thus, it is impossible to define an IP address block so that it
contains exactly ten subnets. In this case, the network administrator must
define a block of 16 (24) and have six unused subnet addresses for future
growth.
Since we need to raise 2 to the power of four (24) to get 16, four bits are
required to designate the sixteen subnets in the block. In this example, you
are subnetting a Class C network (/24) so it will need four more bits (/28)
as the extended network prefix. A 28-bit extended network prefix can be
expressed in dotted-decimal notation as 255.255.255.240. This is illustrated
below:
http://www.dialogic.com/support/helpweb/safepipe/SP/courses/ip/index.htm 11/13/2008
IP addresses and Subnetting Page 12 of 15
In example B above, with the ten subnets, the subnets will be numbered 0
through to 9. The 4-bit binary representation of the decimal values 0 though
9 are: 0 (0000), 1 (0001), 2 (0010), 3 (0011), 4 (0100), 5 (0101), 6
(0110), 7 (0111), 8 (1000), 9 (1001), 10 (1010).
To find the subnet number of each subnet, place the binary representation
of the subnet number, e.g. 0001, into the bits in the base network address
that is used to designate the subnet (see illustration below). For example,
to define subnet number 8, the network administrator places the binary
representation of 8 (1000) into the 4-bits in the base network address that
are used to designate the subnet.
The ten subnet numbers for the example are given below. The italicised
portion of each address identifies the extended network prefix, while the
bold digits identify the 4 bits representing the bits in the address that are
used to designate the subnet:
An easy way to ensure that the subnets are calculated correctly is to ensure
that they are all multiples of the subnet number 1 address. In this case, all
subnets are multiples of 16.
http://www.dialogic.com/support/helpweb/safepipe/SP/courses/ip/index.htm 11/13/2008
IP addresses and Subnetting Page 13 of 15
The three blocks of IP addresses which have been reserved for private
networks and the corresponding standard subnet masks are:
If you do not want to use this method, a list of precalculated subnet masks
together with the number of hosts available on the networks they create
can be found below for easy reference.
The list below can be used as a fast track when subnetting. It describes the
relationship between the number of host IP addresses required and the
corresponding subnet mask. The example above, for instance, required
subnets with 10 host addresses on each. The nearest number that is equal
to or greater than 10 is 16. The subnet mask corresponding to 16 hosts is
listed in the table below. It is 255.255.255.240.
http://www.dialogic.com/support/helpweb/safepipe/SP/courses/ip/index.htm 11/13/2008
IP addresses and Subnetting Page 14 of 15
16,384
4.
A '/8' is also referred to as? A class A network
A class B network
A class C network
5.
What is a private network IP The IP address of a secret server
address? on the Internet
An IP address which is included in
the routing tables on the Internet
An IP address which is NOT
included in the routing tables on
the Internet
6.
You are setting up a LAN with 20 10.0.0.0-10.255.255.255
hosts. Which of the following private
network IP address blocks does it 172.16.0.0-172.31.255.255
make the most sense to choose your
IP addresses from? 192.168.0.0-192.168.255.255
7.
What is subnetting? The division of a physical network
into two or more physical
networks
The division of a logical network
into two or more physical
networks
The division of a physical network
into one or more logical networks
8.
http://www.dialogic.com/support/helpweb/safepipe/SP/courses/ip/index.htm 11/13/2008
IP addresses and Subnetting Page 15 of 15
http://www.dialogic.com/support/helpweb/safepipe/SP/courses/ip/index.htm 11/13/2008