Professional Documents
Culture Documents
Module 6 - IP Addressing and Subnetting
Module 6 - IP Addressing and Subnetting
2
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 3
3
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 4
IPv4 Format
192 .168 .1 .1
11000000.10101000.00000001.00000001
4
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 5
IPv4 Format
5
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 6
IANA
• Internet Assigned Numbers Association
• Global organization responsible for regulation of
domain names, port numbers, AS numbers and IP
addresses.
• Clustered in two (2) main organizations:
1. ICANN – Internet Corporation for Assigned
Names and Numbers.
2. RIR – Regional Internet Registry
6
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 7
IANA
ICANN RIR
APNIC
AFRINIC
Organizational ARIN
Structure LACNIC
RIPE NCC
7
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 8
ICANN
• Internet Corporation for Assigned Names and
Numbers
• Domain Name registration
• Association of Public IP Addresses to its
Domain Name
8
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 9
RIR
• Regional Internet Registry
• In charge with IP address regulation.
• Subdivided into five (5) regional HQ:
1. APNIC – Asia Pacific Network Information
Centre
2. ARIN – American Registry for Internet
Numbers
9
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 10
IANA
3. LACNIC – Latin America and Caribbean
Network Information Centre
4. AFRINIC – African Network Information
Centre
5. RIPE NCC - Réseaux IP Européens (European
IP Networks) Network Coordination Centre
10
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 11
Network Addressing
11
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 12
IPv4 ADDRESSES
12
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 13
Note
13
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 14
Note
14
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 15
Note
15
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 16
16
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 17
Example 1
Change the following IPv4 addresses from binary
notation to dotted-decimal notation.
Solution
We replace each group of 8 bits with its equivalent
decimal number and add dots for separation.
17
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 18
Example 2
Change the following IPv4 addresses from dotted-decimal
notation to binary notation.
18
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 19
Example 3
Find the error, if any, in the following IPv4 addresses.
19
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 20
Note
20
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 21
21
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 22
Example 4
Find the class of each address.
a. 00000001 00001011 00001011 11101111
b. 11000001 10000011 00011011 11111111
c. 14.23.120.8
d. 252.5.15.111
22
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 23
23
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 24
Note
24
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 25
25
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 26
Note
26
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 27
27
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 28
Example 5
It shows a block of addresses, in both binary and dotted-
decimal notation, granted to a small business that needs
16 addresses.
28
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 29
Note
29
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 30
Note
30
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 31
Note
31
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 32
Note
32
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 33
33
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 34
Note
34
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 35
35
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 36
36
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 37
Note
37
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 38
38
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 39
39
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 40
Example 6
An ISP is granted a block of addresses starting with
190.100.0.0/16 (65,536 addresses). The ISP needs to
distribute these addresses to three groups of customers as
follows:
a. The first group has 64 customers; each needs 256
addresses.
b. The second group has 128 customers; each needs 128
addresses.
c. The third group has 128 customers; each needs 64
addresses.
Design the subblocks and find out how many addresses
are still available after these allocations.
40
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 41
41
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 42
A NAT implementation
42
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 43
Addresses in a NAT
43
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 44
44
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 45
45
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 46
46
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 47
Note
47
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 48
IPv6 ADDRESSES
48
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 49
49
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 50
50
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 51
Example 8
Expand the address 0:15::1:12:1213 to its original.
Solution
We first need to align the left side of the double colon to
the left of the original pattern and the right side of the
double colon to the right of the original pattern to find
how many 0s we need to replace the double colon.
51
Technological University of the Philippines - Manila
REF-SPP-AAA-BBB-CCC-DDD-I01-R00-09262020 | 52
52
Technological University of the Philippines - Manila