Marketplace and Quality Assurance Presentation - Vincent Chirchir
Umutima.ppt
1. TCP/IP Protocol Suite 1
Objectives
Upon completion you will be able to:
IP Addresses:
Classful Addressing
• Understand IPv4 addresses and classes
• Identify the class of an IP address
• Find the network address given an IP address
• Understand masks and how to use them
• Understand subnets and supernets
2. TCP/IP Protocol Suite 2
INTRODUCTION
The identifier used in the IP layer of the TCP/IP protocol suite to identify
each device connected to the Internet is called the Internet address or IP
address. An IP address is a 32-bit or 128 address that uniquely and
universally defines the connection of a host or a router to the Internet. IP
addresses are unique. They are unique in the sense that each address
defines one, and only one, connection to the Internet. Two devices on the
Internet can never have the same address.
The topics discussed in this section include:
Address Space
Notation
3. 3
Internet Protocol Address is given to the computer as an
identifier to a computer in a TCP/IP Network
IP Address is also known as Logical Address
IP Address works in Layer 3 (Network)
Two versions of IP Addressing
IP Version 4 - 32 bit address (Currently we are using)
IP Version 6 - 128 bit address
5. TCP/IP Protocol Suite 5
Change the following IP addresses from binary notation to
dotted-decimal notation.
a. 10000001.00001011.00001011.11101111
b. 11000001.10000011.00011011.11111111
c. 11100111.11011011.10001011.01101111
d. 11111001.10011011.11111011.00001111
Example 1
6. TCP/IP Protocol Suite 6
Solution
We replace each group of 8 bits with its equivalent decimal
number and add dots for separation:
a. 129.11.11.239 b. 193.131.27.255
c. 231.219.139.111 d. 249.155.251.15
7. TCP/IP Protocol Suite 7
Change the following IP addresses from dotted-decimal
notation to binary notation.
a. 111.56.45.78 b. 221.34.7.82
c. 241.8.56.12 d. 75.45.34.78
Example 2
8. TCP/IP Protocol Suite 8
Solution
We replace each decimal number with its binary equivalent:
a. 01101111 00111000 00101101 01001110
b. 11011101 00100010 00000111 01010010
c. 11110001 00001000 00111000 00001100
d. 01001011 00101101 00100010 01001110
9. TCP/IP Protocol Suite 9
Find the error, if any, in the following IP addresses:
a. 111.56.045.78 b. 221.34.7.8.20
c. 75.45.301.14 d. 11100010.23.14.67
Example 3
10. TCP/IP Protocol Suite 10
a. There are no leading zeroes in dotted-decimal notation (045).
b. We may not have more than four numbers in an IP address.
c. In dotted-decimal notation, each number is less than or equal
to 255; 301 is outside this range.
d. A mixture of binary notation and dotted-decimal notation is not
allowed.
Solution
11. TCP/IP Protocol Suite 11
CLASSFUL ADDRESSING
IP addresses, when started a few decades ago, used the concept of
classes. This architecture is called classful addressing. In the mid-1990s,
a new architecture, called classless addressing, was introduced and will
eventually supersede the original architecture. However, part of the
Internet is still using classful addressing, but the migration is very fast.
The topics discussed in this section include:
Recognizing Classes
Netid and Hostid
Classes and Blocks
Network Addresses
Sufficient Information
Mask
CIDR Notation
Address Depletion
13. 13
IP Address is divided into Network Portion
and Host Portion
Class A is written as N.H.H.H
Class B is written as N.N.H.H
Class C is written as N.N.N.H
19. 19
Class A 1 - 127
Class B 128 - 191
Class C 192 - 223
Class D 224 - 239
Class E 240 - 254
Finding the class in decimal notation
20. TCP/IP Protocol Suite 20
Find the class of each address:
a. 00000001 00001011 00001011 11101111
b. 11000001 10000011 00011011 11111111
c. 10100111 11011011 10001011 01101111
d. 11110011 10011011 11111011 00001111
Example 4
21. TCP/IP Protocol Suite 21
Solution
a. The first bit is 0. This is a class A address.
b. The first 2 bits are 1; the third bit is 0. This is a class C address.
c. The first bit is 0; the second bit is 1. This is a class B address.
d. The first 4 bits are 1s. This is a class E address..
23. TCP/IP Protocol Suite 23
Find the class of each address:
a. 227.12.14.87 b.193.14.56.22 c.14.23.120.8
d. 252.5.15.111 e.134.11.78.56
Example 5
24. TCP/IP Protocol Suite 24
Solution
a. The first byte is 227 (between 224 and 239); the class is D.
b. The first byte is 193 (between 192 and 223); the class is C.
c. The first byte is 14 (between 0 and 127); the class is A.
d. The first byte is 252 (between 240 and 255); the class is E.
e. The first byte is 134 (between 128 and 191); the class is B.
25. TCP/IP Protocol Suite 25
Network mask
A network mask or a default mask in classful
addressing is a 32-bit number with n leftmost bits all
set to 1s and (32 − n) rightmost bits all set to 0s.
Since n is different for each class in classful addressing,
we have three default masks in classful addressing
The routers in the Internet normally use an algorithm to
extract the network address from the destination
address of a packet. To do this, we need a network
mask.
31. TCP/IP Protocol Suite 31
The number of addresses in class C is
smaller than the needs of most
organizations.
Note:
32. TCP/IP Protocol Suite 32
Class D addresses are used for
multicasting; there is only one block in
this class.
Note:
33. TCP/IP Protocol Suite 33
Class E addresses are reserved for
future purposes; most of the block is
wasted.
Note:
34. TCP/IP Protocol Suite 34
In classful addressing, the network
address (the first address in the block)
is the one that is assigned to the
organization. The range of addresses
can automatically be inferred from the
network address.
Note:
35. TCP/IP Protocol Suite 35
Given the network address 17.0.0.0, find the class, the default
mask, the block, and the range of the addresses.
Example 6
36. TCP/IP Protocol Suite 36
Solution
The class is A because the first byte is between 0 and 127. The
default mask is 255.0.0.0 because the address is in class A. The
block has a netid of 17. The addresses range from 17.0.0.0 to
17.255.255.255.
37. TCP/IP Protocol Suite 37
Given the network address 132.21.0.0, find the class, the
default mask, the block, and the range of the addresses.
Example 7
38. TCP/IP Protocol Suite 38
Solution
The class is B because the first byte is between 128 and 191.
The default mask is 255.255.0.0 because the address is in class
B. The block has a netid of 1132.21. The addresses range from
132.21.0.0 to 132.21.255.255.
39. TCP/IP Protocol Suite 39
Given the network address 220.34.76.0, find the class, the
default mask, the block, and the range of the addresses.
Example 8
40. TCP/IP Protocol Suite 40
Solution
The class is C because the first byte is between 192
and 223. The default mask is 255.255.255.0 because
the address is in class C. The block has a netid of
220.34.76. The addresses range from 220.34.76.0 to
220.34.76.255
41. TCP/IP Protocol Suite 41
The network address is the beginning
address of each block. It can be found
by applying the default mask to any of
the addresses in the block (including
itself). It retains the netid of the block
and sets the hostid to zero.
Note:
42. TCP/IP Protocol Suite 42
Given the address 23.56.7.91, find the following piece of
information:
Number of hosts in this network:
Default mask:
Network address (First address in the network):
Range of all addresses including special addresses:
Range of usable addresses:
Broadcast address (the last address in the network):
Example 9
43. TCP/IP Protocol Suite 43
Solution
The number of hosts in the network calculated by 2 to the
power of 24 minus 2 (special addresses) is 16,777,214
The default mask is 255.0.0.0, which means that the first
byte is preserved and the other 3 bytes are set to 0s.
Range of all addresses starts from 23.0.0.0 through
23.255.255.255
The network address is 23.0.0.0
The range of usable address is 23.0.0.1 through
23.255.255.254
Broadcast address is the last address in this network(block)
which is 23.255.255.255
44. TCP/IP Protocol Suite 44
Given the address 132.6.17.85, find the following piece of
information:
Number of hosts in this network:
Default mask:
Network address (First address in the network):
Range of all addresses including special addresses:
Range of usable addresses:
Broadcast address (the last address in the network):
Example 10
45. TCP/IP Protocol Suite 45
Solution
The number of hosts in the network calculated by 2 to the
power of 16 minus 2 (special addresses) is 65,534
The default mask is 255.255.0.0, which means that the first
2 bytes are preserved and the other 2 bytes are set to 0s.
The network address is 132.6.0.0
Range of all addresses starts from 132.6.0.0 through
132.6.255.255
The range of usable address is 132.6.0.1 through
132.6.255.254
Broadcast address is the last address in this network(block)
which is 132.6.255.255
46. TCP/IP Protocol Suite 46
Given the address 201.180.56.5, find the following piece of
information:
Number of hosts in this network:
Default mask:
Network address (First address in the network):
Range of all addresses including special addresses:
Range of usable addresses:
Broadcast address (the last address in the network):
Example 11
47. TCP/IP Protocol Suite 47
Solution
The number of hosts in the network calculated by 2 to the
power of 8 minus 2 (special addresses) is 254
The default mask is 255.255.255.0, which means that the
first 3 bytes are preserved and the last byte is set to 0s.
Range of all addresses starts from 201.180.56.0 through
201.180.56.255
The network address is 201.180.56.0
The range of usable address is 201.180.56.1 through
201.180.56.254
Broadcast address is the last address in this network(block)
which is 201.180.56.255
48. TCP/IP Protocol Suite 48
Note that we must not apply the
default mask of one class to an address
belonging to another class.
Note:
49. TCP/IP Protocol Suite 49
OTHER ISSUES
In this section, we discuss some other issues that are related to
addressing in general and classful addressing in particular.
The topics discussed in this section include:
Special Addresses
Private Addresses
Unicast, Multicast, and Broadcast Addresses
57. Private vs. Public IP address
TCP/IP Protocol Suite 57
Private IP Address Public IP Address
Used with LAN or within a company Used on public network (Internet)
Not recognized on the Internet Recognized on the Internet
Assigned by the Administrator Assigned by the service provider
(IANA)
Unique within the network/company Globally unique
Free Charged by the service provider
Unregistered IP Registered IP
60. TCP/IP Protocol Suite 60
IP SUBNETTING
In this section, we discuss some other issues that are related to
addressing particularly subnetting.
The topics discussed in this section include:
Creating subnets based on network requirements
Creating subnets based on hosts requirements
FLSM (Fixed Length Subnet Mask)
VLSM (Variable Length Subnet Mask)
61. TCP/IP Protocol Suite 61
IP SUBNETTING
Subnetting is the process of dividing a single network into multiple
smaller networks known as network segments or subnets
Subnetting helps in minimizing the wastage of IP address
Converting host/network bits into host/network bits depending on reqs.
Subnetting can be performed in two ways
1. FLSM (Fixed Length Subnet Mask)
2. VLSM (Variable Length Subnet Mask)
Subnetting can be done based on two requirements:
1. Requirements of networks
2. Requirements of hosts
67. Exercise
A service provider has given you the Class C
network range 209.50.1.0 Your company must
break the network into 20 separate subnets.
What is the new subnet mask for this
network?
Find the first four subnets
Find range of addresses in the 1st and the 4th
subnet showing the N.A (Netid), Valid address
ranges & B.A
TCP/IP Protocol Suite 67
72. VLSM – Variable Length Subnet Mask
Purpose:
To support more efficient use of the assigned IP
addresses.
Reduce the wastage of IP address
Subnet mask varies depending on the requirements.
Most used in real-world environment especially by
ISPs
TCP/IP Protocol Suite 72
73. You need to configure a server that is on the subnet
192.168.19.24/29. The router has the first available
host address. Which of the following should you
assign to the server?
a) 192.168.19.26 255.255.255.248 b) 192.168.19.33
255.255.255.240 c) 192.168.19.0 255.255.255.0
d) 192.168.19.31 255.255.255.248 e) 192.168.19.34
255.255.255.240
TCP/IP Protocol Suite 73
74. What is the subnetwork address for a host with the IP
address 200.10.5.100/26?
a) 200.10.5.64 b) 200.20.5.32 c) 200.20.5.56
d) 200.10.5.0
TCP/IP Protocol Suite 74
75. Steps
TCP/IP Protocol Suite 75
Convert the requirements to binary to
find your increment and a new subnet
mask starting from the largest
requirement
Add your increments starting from the
previous subnet and find your ranges
76. Example
TCP/IP Protocol Suite 76
Given the Class C network of 204.15.5.0/24, subnet
the network in order to create the network in the
figure below, with the host requirements shown.
77. VLSM Exercise
TCP/IP Protocol Suite 77
Given the Class C network of 192.168.10.0/24, subnet
the network in order to create the network in the
figure below, with the host requirements shown.
78. Great exceptions
TCP/IP Protocol Suite 78
Because binary begins counting from zero…
These network values may throw off calculations:
2, 4, 8, 16, 32, 64, 128
These host values may throw off calculations:
3, 7, 15, 31, 63, 127
To be safe, always:
Subtract 1 when finding networks
Add 1 when finding hosts per network