Ipv4 address

RomanusKomba 127 views 45 slides Jan 23, 2022
Slide 1
Slide 1 of 45
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40
Slide 41
41
Slide 42
42
Slide 43
43
Slide 44
44
Slide 45
45

About This Presentation

Ipv4 address


Slide Content

IT 501 COMPUTER
NETWORKING
TOPIC: IPv4 Addresses
14/6/2022

IP address
AnIPaddressisanidentifierforaparticular
machineonaparticularnetwork.Itispartofa
schemetoidentifycomputersontheinternet.
ThenetworkportionoftheIPaddressisallocated
tointernetserviceprovider(ISP)bytheInterNIC,
underauthorityoftheinternetassignednumber
authority(IANA).
4/6/2022 2

ISPsthenassignthehostportionoftheIP
addresstothemachinesonthenetworksthat
theyoperate.
WhichsectionoftheIPaddressrepresentthe
network&whichsectionsrepresentthemachine
willdependonwhat“class”ofIPaddressis
assignedtoanetwork.
4/6/2022 3

IPv4
Itis32bitnumberrepresentedin4
decimalnumberwhereeachdecimal
numberisof8bit(octet)isseparatedbya
dot(.).
Thusrepresentationknownasdoted
decimalrepresentation.
IPaddressconsistsof2componentsthe
networkidandthehostid.
4/6/2022 4

IPv4 cont…
Networkid:-itisthenumberassignedtoa
networkintheinternet.
Hostid:-itrepresentstheidassignedtoahost
inthenetwork.
IPv4allows2
32
(4294967296)uniqueaddress
whichsectionofIPaddressshowthenetwork
id&whichsectionshowthemachineorhostid
dependontheclassnetwork.
4/6/2022 5

IPv4 cont…
TherearefiveclassesofIPaddresses:-
ClassA
ClassB
ClassC
ClassD
ClassE
4/6/2022 6

IPv4 cont…
ClassA:-
Thefirstbyteisanetworkid(8bits)&thelast3
bytesareforhostid(24bits).
Thefirstbitis‘0’.
Rangeofnetworknumber-1.0.0.0to126.0.0.0
Numberofpossiblenetworks-127(1-126usable,127
isreserved)
4/6/2022 7

IPv4 cont…
ClassA:-
Numberofpossiblevaluesinthehost
portion-16,777,216
Itisusedforlargenetwork.
4/6/2022 8

IPv4 cont…
ClassB:-
Thefirst2bytesareanetworkid(16bits)&
thelast2bytesareforhostid(16bits).
Thefirst2bitsare‘10’.
Rangeofnetworknumber-128.0.0.0to
191.255.0.0
Numberofpossiblenetworks-16,384
4/6/2022 9

IPv4 cont…
ClassB:-
Numberofpossiblevaluesinthehost
portion-65536
Usedformediumsizenetwork.
4/6/2022 10

IPv4 cont…
ClassC:-
Thefirst3bytesareanetworkid(24bits)&
thelast1byteareforhostid(8bit).
Thefirst3bitsare‘110’.
Rangeofnetworknumber-192.0.0.0to
223.255.255.0
Numberofpossiblenetworks-2,097,152
4/6/2022 11

IPv4 cont…
ClassC:-
Numberofpossiblevaluesinthehost
portion-256
Usedinlocalareanetwork(LAN).
4/6/2022 12

IPv4 cont…
ClassD:-
AnIPaddresswhichbelongtoclassDhasthe
firstoctethasits4bitsetto‘1110’.
Rangeofnetworknumber-224.0.0.0to
239.255.255.255
4/6/2022 13

IPv4 cont…
ClassD:-
Usedformulticasting
4/6/2022 14

IPv4 cont…
ClassE:-
Itreservedforexperimental&forfuturetesting
purpose.
Rangeofnetworknumber-240.0.0.0to
255.255.255.254
4/6/2022 15

16
NetworkAddressing
IP addresses identify both the network and the host
–The division between the two is not specific to a certain
number of octets
Subnet mask
–Indicates how much of the IP address represents the
network or subnet
Standard (default) subnet masks:
–Class A, subnet mask is 255.0.0.0
–Class B, subnet mask is 255.255.0.0
–Class C, subnet mask is 255.255.255.0
4/6/2022

17
NetworkAddressingcont…

TCP/IP hosts use the combination of the IP address
and the subnet mask
–To determine if other addresses are local or remote
–The binary AND operation is used to perform the
calculation
Subnetting
–Manipulation of the subnet mask to get more network
numbers

4/6/2022

18
NetworkAddressingcont…
•Subnet address
–Network is identified by the first, or first few, octets
–A TCP/IP host must have a nonzero host identifier
Broadcast address
–When the entire host portion of an IP address is all
binary ones
–Examples: 190.55.255.255 and 199.192.65.63

4/6/2022

NetworkAddressingcont…
19
Broadcast addresses
Broadcasts on partially octets
4/6/2022

20
BroadcastTypes
•Flooded broadcasts
–Broadcasts for any subnet
–Use use the IP address 255.255.255.255
–A router does not propagate flooded broadcasts
because they are considered local
Directed broadcasts are for a specific subnet
–Routers can forward directed broadcasts
–For example, a packet sent to the Class B address
129.30.255.255 would be a broadcast for network
129.30.0.0

4/6/2022

21
SubdividingIPClasses

Reasons for subnetting
–To match the physical layout of the organization
–To match the administrative structure of the organization
–To plan for future growth
–To reduce network traffic
4/6/2022

Subdividing IPClassescont…
22
Dividing a Class B network
4/6/2022

23
SubnetMasking
•When network administrators create subnets
–They borrow bits from the original host field to make a
set of subnetworks
–The number of borrowed bits determines how many
subnetworks and hosts will be available
Class C addresses also can be subdivided
–Not as many options or available masks exist because
only the last octet can be manipulated with this class

4/6/2022

24Class B subnet mask4/6/2022

SubnetMaskingcont…
25
Class C subnet mask
4/6/2022

SubnetMaskingcont…
26
Subnet mask values
4/6/2022

27
LearningtoSubnet
Suppose you had a network with:
Five different segments
Somewhere between 15 and 20 TCP/IP hosts on each network
segment
You just received your Class C address from
ARIN (199.1.10.0)
Only one subnet mask can handle your network
configuration: 255.255.255.224
This subnet mask will allow you to create eight subnetworks and
to place up to 30 hosts per network
4/6/2022

28
LearningtoSubnetcont…
•Determine the subnet identifiers (IP addresses)
–Write the last masking octet as a binary number
–Determine the binary place of the last masking digit
Calculate the subnets
–Begin with the major network number (subnet zero)
and increment by 32
–Stop counting when you reach the value of the mask
Determine the valid ranges for your hosts on each
subnet
–Take the ranges between each subnet identifier
–Remove the broadcast address for each subnet


4/6/2022

LearningtoSubnetcont…
29
Subnet masking example
4/6/2022

LearningtoSubnetcont…
30
Class C address 199.1.10.0 masking 255.255.255.224
4/6/2022

LearningtoSubnetcont…
31
A binary look at the mask
4/6/2022

32
SubnettingFormulas
•Consider memorizing the following two formulas:
2
y = # of usable subnets (where y is the number of bits
borrowed)
2
x –2 = # of usable hosts per subnet (where x is the
number of bits remaining in the host field after
borrowing)
4/6/2022

SubnettingFormulascont…
33
Sample calculation using formulas
4/6/2022

SubnettingFormulascont…
34
255.255.255.240 subnet mask
4/6/2022

35
ClasslessInter-DomainRouting
(CIDR)
•Classless Inter-Domain Routing (CIDR)
–Developed to slow the exhaustion of IP addresses
–Based on assigning IP addresses on criteria other
than octet boundaries
CIDR addressing method allows the use of a prefix
to designate the number of network bits in the mask
–Example: 200.16.1.48 /25 (CIDR notation)
–The first 25 bits in the mask are network bits (1s)
The prefix can be longer than the default subnet
mask (subnetting) or it can be shorter than the
default mask (supernetting)


4/6/2022

Supernet Mask
Asupernetmaskisthereverseofasubnet
mask.AsubnetmaskforclassChasmore1s
thanthedefaultmaskforthisclass.Asupernet
maskforclassChasless1sthanthedefault
maskforthisclass.
4/6/2022 36

37
Supernetting(Summarization)
Summarization
–Alsoknowasrouteaggregationorsupernetting
–AllowsmanyIPsubnetstobeadvertisedasone
•Reducesthenumberofentriesintherouter’srouting
table
Summarizeagroupofsubnets
–Countthenumberofbitsthatarecommontoallofthe
networksyouwanttoadvertise
–Thenusetheprefixthatidentifiesthenumberof
commonbits
4/6/2022

Summarizationcont…
38
Example of summarization
4/6/2022

39
VariableLengthSubnetMasks
•Variable length subnet masking (VLSM)
–Allows different masks on the subnets
–Essentially done by subnetting the subnets
Basic routing protocols such as RIP version 1 and
IGRP
–Do not support VLSM because they do not carry
subnet mask information in their routing table updates
–Are classful routing protocols
RIP version 2, OSPF, or EIGRP are classless
protocols


4/6/2022

40
Example of internetwork for VLSM (Variable
Length Subnet Mask)
4/6/2022

Variable Length Subnet Masks cont…
41
VLSM IP scheme created from 192.168.59.128/26
4/6/2022

Variable Length Subnet Masks cont…
42
VLSM IP scheme for 192.168.59.0
4/6/2022

43
WorkingwithHexadecimalNumbers
•Hexadecimal numbering system is base 16
–16 numerals are used to express any given number
–Numerals include 0 through 9 as well as A through F
–For example, the decimal number 192 is C0 in
hexadecimal
Often you will come across hexadecimal numbers
when working with computers and networking
–The MAC address is a 12-digit hexadecimal number
Computers typically process information in 8-bit
chunks (bytes)
–Easier to express bytes with two hex digits


4/6/2022

44Binary to hex to decimal conversion
4/6/2022

Thank you
4/6/2022 45
Tags