SlideShare a Scribd company logo
1 of 78
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
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
 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
TCP/IP Protocol Suite 4
Dotted-decimal notation
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
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
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
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
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
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
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
TCP/IP Protocol Suite 12
The address space of IPv4 is
232 or 4,294,967,296.
Note:
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
14
TCP/IP Protocol Suite 15
Occupation of the address space
TCP/IP Protocol Suite 16
Addresses per class
TCP/IP Protocol Suite 17
Finding the class in binary notation
TCP/IP Protocol Suite 18
Finding the address class
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
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
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..
TCP/IP Protocol Suite 22
Finding the class in decimal notation
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
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.
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.
TCP/IP Protocol Suite 26
Default masks
TCP/IP Protocol Suite 27
Netid and hostid
TCP/IP Protocol Suite 28
Blocks in class A
TCP/IP Protocol Suite 29
Blocks in class B
TCP/IP Protocol Suite 30
Blocks in class C
TCP/IP Protocol Suite 31
The number of addresses in class C is
smaller than the needs of most
organizations.
Note:
TCP/IP Protocol Suite 32
Class D addresses are used for
multicasting; there is only one block in
this class.
Note:
TCP/IP Protocol Suite 33
Class E addresses are reserved for
future purposes; most of the block is
wasted.
Note:
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:
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
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.
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
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.
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
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
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:
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
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
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
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
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
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
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:
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
TCP/IP Protocol Suite 50
Special addresses
TCP/IP Protocol Suite 51
Network address
TCP/IP Protocol Suite 52
Example of direct broadcast address
TCP/IP Protocol Suite 53
Example of limited broadcast address
TCP/IP Protocol Suite 54
Examples of “this host on this network”
TCP/IP Protocol Suite 55
Example of “specific host on this network”
TCP/IP Protocol Suite 56
Example of loopback address
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
TCP/IP Protocol Suite 58
Addresses for private networks
TCP/IP Protocol Suite 59
Figure 4.19 Sample internet
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)
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
TCP/IP Protocol Suite 62
TCP/IP Protocol Suite 63
TCP/IP Protocol Suite 64
TCP/IP Protocol Suite 65
TCP/IP Protocol Suite 66
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
TCP/IP Protocol Suite 68
TCP/IP Protocol Suite 69
TCP/IP Protocol Suite 70
TCP/IP Protocol Suite 71
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
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
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
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
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.
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.
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

More Related Content

Similar to Umutima.ppt

Internet Technology
Internet TechnologyInternet Technology
Internet Technologyhome
 
Classless addressing
Classless addressingClassless addressing
Classless addressingIqra Abbas
 
Chap 05 ip addresses classfless
Chap 05 ip addresses classflessChap 05 ip addresses classfless
Chap 05 ip addresses classflessNoctorous Jamal
 
Ip addresses
Ip addressesIp addresses
Ip addressesAsif
 
NP - Unit 2 - Internet Addressing, ARP and RARP
NP - Unit 2 - Internet Addressing, ARP and RARP NP - Unit 2 - Internet Addressing, ARP and RARP
NP - Unit 2 - Internet Addressing, ARP and RARP hamsa nandhini
 
1703_anusua_basuclassful addressing_IP_Addressing
1703_anusua_basuclassful addressing_IP_Addressing1703_anusua_basuclassful addressing_IP_Addressing
1703_anusua_basuclassful addressing_IP_AddressingAnusuaBasu
 
Expl net fund_chapter_06_i_pv4_part_2
Expl net fund_chapter_06_i_pv4_part_2Expl net fund_chapter_06_i_pv4_part_2
Expl net fund_chapter_06_i_pv4_part_2kurtmctaggart
 
6-LEC- 6.pptx Network Layer. Addressing Subnetting Mask (default and subnet) ...
6-LEC- 6.pptx Network Layer. Addressing Subnetting Mask (default and subnet) ...6-LEC- 6.pptx Network Layer. Addressing Subnetting Mask (default and subnet) ...
6-LEC- 6.pptx Network Layer. Addressing Subnetting Mask (default and subnet) ...ZahouAmel1
 
7-Lect_7 .pptxNetwork LayerNetwork Layer
7-Lect_7 .pptxNetwork LayerNetwork Layer7-Lect_7 .pptxNetwork LayerNetwork Layer
7-Lect_7 .pptxNetwork LayerNetwork LayerZahouAmel1
 
7-Lect_7 .pptxNetwork Layer. Addressing Subnetting Mask (default and subnet) ...
7-Lect_7 .pptxNetwork Layer. Addressing Subnetting Mask (default and subnet) ...7-Lect_7 .pptxNetwork Layer. Addressing Subnetting Mask (default and subnet) ...
7-Lect_7 .pptxNetwork Layer. Addressing Subnetting Mask (default and subnet) ...ZahouAmel1
 
IP_ADDRESSING_AND_SUBNETTING.pptx
IP_ADDRESSING_AND_SUBNETTING.pptxIP_ADDRESSING_AND_SUBNETTING.pptx
IP_ADDRESSING_AND_SUBNETTING.pptxgamerchan1
 

Similar to Umutima.ppt (20)

Lecture 03 networking
Lecture 03 networkingLecture 03 networking
Lecture 03 networking
 
Internet Technology
Internet TechnologyInternet Technology
Internet Technology
 
Ip addressing classless
Ip addressing classlessIp addressing classless
Ip addressing classless
 
Ip addressing classless
Ip addressing classlessIp addressing classless
Ip addressing classless
 
Classless addressing
Classless addressingClassless addressing
Classless addressing
 
Chap 05 ip addresses classfless
Chap 05 ip addresses classflessChap 05 ip addresses classfless
Chap 05 ip addresses classfless
 
Chap 05
Chap 05Chap 05
Chap 05
 
Ip addresses
Ip addressesIp addresses
Ip addresses
 
NP - Unit 2 - Internet Addressing, ARP and RARP
NP - Unit 2 - Internet Addressing, ARP and RARP NP - Unit 2 - Internet Addressing, ARP and RARP
NP - Unit 2 - Internet Addressing, ARP and RARP
 
1703_anusua_basuclassful addressing_IP_Addressing
1703_anusua_basuclassful addressing_IP_Addressing1703_anusua_basuclassful addressing_IP_Addressing
1703_anusua_basuclassful addressing_IP_Addressing
 
chapter 4.pptx
chapter 4.pptxchapter 4.pptx
chapter 4.pptx
 
CN Unit 3
CN Unit 3 CN Unit 3
CN Unit 3
 
Expl net fund_chapter_06_i_pv4_part_2
Expl net fund_chapter_06_i_pv4_part_2Expl net fund_chapter_06_i_pv4_part_2
Expl net fund_chapter_06_i_pv4_part_2
 
Ramakant tyagi presentation on ip addressing
Ramakant tyagi presentation on ip addressingRamakant tyagi presentation on ip addressing
Ramakant tyagi presentation on ip addressing
 
Internet Protocol
Internet ProtocolInternet Protocol
Internet Protocol
 
6-LEC- 6.pptx Network Layer. Addressing Subnetting Mask (default and subnet) ...
6-LEC- 6.pptx Network Layer. Addressing Subnetting Mask (default and subnet) ...6-LEC- 6.pptx Network Layer. Addressing Subnetting Mask (default and subnet) ...
6-LEC- 6.pptx Network Layer. Addressing Subnetting Mask (default and subnet) ...
 
Ch7 IP addressing.pptx
Ch7 IP addressing.pptxCh7 IP addressing.pptx
Ch7 IP addressing.pptx
 
7-Lect_7 .pptxNetwork LayerNetwork Layer
7-Lect_7 .pptxNetwork LayerNetwork Layer7-Lect_7 .pptxNetwork LayerNetwork Layer
7-Lect_7 .pptxNetwork LayerNetwork Layer
 
7-Lect_7 .pptxNetwork Layer. Addressing Subnetting Mask (default and subnet) ...
7-Lect_7 .pptxNetwork Layer. Addressing Subnetting Mask (default and subnet) ...7-Lect_7 .pptxNetwork Layer. Addressing Subnetting Mask (default and subnet) ...
7-Lect_7 .pptxNetwork Layer. Addressing Subnetting Mask (default and subnet) ...
 
IP_ADDRESSING_AND_SUBNETTING.pptx
IP_ADDRESSING_AND_SUBNETTING.pptxIP_ADDRESSING_AND_SUBNETTING.pptx
IP_ADDRESSING_AND_SUBNETTING.pptx
 

Recently uploaded

8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCRashishs7044
 
Market Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 EditionMarket Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 EditionMintel Group
 
Investment in The Coconut Industry by Nancy Cheruiyot
Investment in The Coconut Industry by Nancy CheruiyotInvestment in The Coconut Industry by Nancy Cheruiyot
Investment in The Coconut Industry by Nancy Cheruiyotictsugar
 
Call Girls in DELHI Cantt, ( Call Me )-8377877756-Female Escort- In Delhi / Ncr
Call Girls in DELHI Cantt, ( Call Me )-8377877756-Female Escort- In Delhi / NcrCall Girls in DELHI Cantt, ( Call Me )-8377877756-Female Escort- In Delhi / Ncr
Call Girls in DELHI Cantt, ( Call Me )-8377877756-Female Escort- In Delhi / Ncrdollysharma2066
 
Ten Organizational Design Models to align structure and operations to busines...
Ten Organizational Design Models to align structure and operations to busines...Ten Organizational Design Models to align structure and operations to busines...
Ten Organizational Design Models to align structure and operations to busines...Seta Wicaksana
 
Intro to BCG's Carbon Emissions Benchmark_vF.pdf
Intro to BCG's Carbon Emissions Benchmark_vF.pdfIntro to BCG's Carbon Emissions Benchmark_vF.pdf
Intro to BCG's Carbon Emissions Benchmark_vF.pdfpollardmorgan
 
Keppel Ltd. 1Q 2024 Business Update Presentation Slides
Keppel Ltd. 1Q 2024 Business Update  Presentation SlidesKeppel Ltd. 1Q 2024 Business Update  Presentation Slides
Keppel Ltd. 1Q 2024 Business Update Presentation SlidesKeppelCorporation
 
2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis UsageNeil Kimberley
 
Islamabad Escorts | Call 03274100048 | Escort Service in Islamabad
Islamabad Escorts | Call 03274100048 | Escort Service in IslamabadIslamabad Escorts | Call 03274100048 | Escort Service in Islamabad
Islamabad Escorts | Call 03274100048 | Escort Service in IslamabadAyesha Khan
 
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCRashishs7044
 
Independent Call Girls Andheri Nightlaila 9967584737
Independent Call Girls Andheri Nightlaila 9967584737Independent Call Girls Andheri Nightlaila 9967584737
Independent Call Girls Andheri Nightlaila 9967584737Riya Pathan
 
Kenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby AfricaKenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby Africaictsugar
 
Buy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail AccountsBuy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail AccountsBuy Verified Accounts
 
BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,noida100girls
 
Call Us 📲8800102216📞 Call Girls In DLF City Gurgaon
Call Us 📲8800102216📞 Call Girls In DLF City GurgaonCall Us 📲8800102216📞 Call Girls In DLF City Gurgaon
Call Us 📲8800102216📞 Call Girls In DLF City Gurgaoncallgirls2057
 
Annual General Meeting Presentation Slides
Annual General Meeting Presentation SlidesAnnual General Meeting Presentation Slides
Annual General Meeting Presentation SlidesKeppelCorporation
 
Marketing Management Business Plan_My Sweet Creations
Marketing Management Business Plan_My Sweet CreationsMarketing Management Business Plan_My Sweet Creations
Marketing Management Business Plan_My Sweet Creationsnakalysalcedo61
 
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptxContemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptxMarkAnthonyAurellano
 
Marketplace and Quality Assurance Presentation - Vincent Chirchir
Marketplace and Quality Assurance Presentation - Vincent ChirchirMarketplace and Quality Assurance Presentation - Vincent Chirchir
Marketplace and Quality Assurance Presentation - Vincent Chirchirictsugar
 

Recently uploaded (20)

8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
8447779800, Low rate Call girls in New Ashok Nagar Delhi NCR
 
Market Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 EditionMarket Sizes Sample Report - 2024 Edition
Market Sizes Sample Report - 2024 Edition
 
Investment in The Coconut Industry by Nancy Cheruiyot
Investment in The Coconut Industry by Nancy CheruiyotInvestment in The Coconut Industry by Nancy Cheruiyot
Investment in The Coconut Industry by Nancy Cheruiyot
 
Call Girls in DELHI Cantt, ( Call Me )-8377877756-Female Escort- In Delhi / Ncr
Call Girls in DELHI Cantt, ( Call Me )-8377877756-Female Escort- In Delhi / NcrCall Girls in DELHI Cantt, ( Call Me )-8377877756-Female Escort- In Delhi / Ncr
Call Girls in DELHI Cantt, ( Call Me )-8377877756-Female Escort- In Delhi / Ncr
 
Ten Organizational Design Models to align structure and operations to busines...
Ten Organizational Design Models to align structure and operations to busines...Ten Organizational Design Models to align structure and operations to busines...
Ten Organizational Design Models to align structure and operations to busines...
 
Intro to BCG's Carbon Emissions Benchmark_vF.pdf
Intro to BCG's Carbon Emissions Benchmark_vF.pdfIntro to BCG's Carbon Emissions Benchmark_vF.pdf
Intro to BCG's Carbon Emissions Benchmark_vF.pdf
 
Keppel Ltd. 1Q 2024 Business Update Presentation Slides
Keppel Ltd. 1Q 2024 Business Update  Presentation SlidesKeppel Ltd. 1Q 2024 Business Update  Presentation Slides
Keppel Ltd. 1Q 2024 Business Update Presentation Slides
 
2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage2024 Numerator Consumer Study of Cannabis Usage
2024 Numerator Consumer Study of Cannabis Usage
 
Islamabad Escorts | Call 03274100048 | Escort Service in Islamabad
Islamabad Escorts | Call 03274100048 | Escort Service in IslamabadIslamabad Escorts | Call 03274100048 | Escort Service in Islamabad
Islamabad Escorts | Call 03274100048 | Escort Service in Islamabad
 
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
8447779800, Low rate Call girls in Shivaji Enclave Delhi NCR
 
Independent Call Girls Andheri Nightlaila 9967584737
Independent Call Girls Andheri Nightlaila 9967584737Independent Call Girls Andheri Nightlaila 9967584737
Independent Call Girls Andheri Nightlaila 9967584737
 
Kenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby AfricaKenya’s Coconut Value Chain by Gatsby Africa
Kenya’s Coconut Value Chain by Gatsby Africa
 
Buy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail AccountsBuy gmail accounts.pdf Buy Old Gmail Accounts
Buy gmail accounts.pdf Buy Old Gmail Accounts
 
BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
 
Call Us 📲8800102216📞 Call Girls In DLF City Gurgaon
Call Us 📲8800102216📞 Call Girls In DLF City GurgaonCall Us 📲8800102216📞 Call Girls In DLF City Gurgaon
Call Us 📲8800102216📞 Call Girls In DLF City Gurgaon
 
Corporate Profile 47Billion Information Technology
Corporate Profile 47Billion Information TechnologyCorporate Profile 47Billion Information Technology
Corporate Profile 47Billion Information Technology
 
Annual General Meeting Presentation Slides
Annual General Meeting Presentation SlidesAnnual General Meeting Presentation Slides
Annual General Meeting Presentation Slides
 
Marketing Management Business Plan_My Sweet Creations
Marketing Management Business Plan_My Sweet CreationsMarketing Management Business Plan_My Sweet Creations
Marketing Management Business Plan_My Sweet Creations
 
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptxContemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
Contemporary Economic Issues Facing the Filipino Entrepreneur (1).pptx
 
Marketplace and Quality Assurance Presentation - Vincent Chirchir
Marketplace and Quality Assurance Presentation - Vincent ChirchirMarketplace and Quality Assurance Presentation - Vincent Chirchir
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
  • 4. TCP/IP Protocol Suite 4 Dotted-decimal notation
  • 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
  • 12. TCP/IP Protocol Suite 12 The address space of IPv4 is 232 or 4,294,967,296. Note:
  • 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
  • 14. 14
  • 15. TCP/IP Protocol Suite 15 Occupation of the address space
  • 16. TCP/IP Protocol Suite 16 Addresses per class
  • 17. TCP/IP Protocol Suite 17 Finding the class in binary notation
  • 18. TCP/IP Protocol Suite 18 Finding the address class
  • 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..
  • 22. TCP/IP Protocol Suite 22 Finding the class in decimal notation
  • 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.
  • 26. TCP/IP Protocol Suite 26 Default masks
  • 27. TCP/IP Protocol Suite 27 Netid and hostid
  • 28. TCP/IP Protocol Suite 28 Blocks in class A
  • 29. TCP/IP Protocol Suite 29 Blocks in class B
  • 30. TCP/IP Protocol Suite 30 Blocks in class C
  • 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
  • 50. TCP/IP Protocol Suite 50 Special addresses
  • 51. TCP/IP Protocol Suite 51 Network address
  • 52. TCP/IP Protocol Suite 52 Example of direct broadcast address
  • 53. TCP/IP Protocol Suite 53 Example of limited broadcast address
  • 54. TCP/IP Protocol Suite 54 Examples of “this host on this network”
  • 55. TCP/IP Protocol Suite 55 Example of “specific host on this network”
  • 56. TCP/IP Protocol Suite 56 Example of loopback address
  • 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
  • 58. TCP/IP Protocol Suite 58 Addresses for private networks
  • 59. TCP/IP Protocol Suite 59 Figure 4.19 Sample internet
  • 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