Topic 2.3 Network Addressing For TCPIP
Topic 2.3 Network Addressing For TCPIP
TOPIC NETWORK
2: OSI MODEL AND
NETWORK PROTOCOLS
2.3 ADDRESSING SCHEME FOR
TCP/IP
[email protected]
Learning Outcomes
1. Explain the addressing scheme of
TCP/IP
2. Identify Public and Private IP address.
3. Types of IP address
4. Methods of obtaining IP addresses
Recap!!
1. Can you list the 7 Layer in OSI?
2. What is protocol?
3. Did you still remember TCP/IP
Model. List all the 4 Layer in
TCP/IP?
IP Addresses and Subnet Mask
• IP address
IP address is a 32-bit binary number that
divided into 4 groups of 8 bits, known as
octets.
Allow to communicate with other
computers.
IP address is the number assigned to your
computer by the network device.
IP Addresses and Subnet Mask
• Subnet Mask
Determines how many IP addresses you
can use for your network.
Example, 255.255.255.0 would allow you
to use 254 IP addresses for your network.
Subnet mask defines how large of a
network you want to talk to by default.
IP Addresses and Subnet Mask
Addressing Scheme: Structure of IP Address
Where is
Purpose of IP Address 192.168.5.22?
192.168.5.0
I’m HOST
2 192.168.5.22
192.168.5.23
192.168.5.22
The logical 32-bit IP address is
Purpose of IP Address
hierarchical and is made up of
two parts. The first part identifies
the network and the second part
identifies a host on that network
First part identifies the network
A 1-126 00000000 -
01111111
N.H.H.H
Host: 16.7
255.0.0.0 Large network
millions
B 128-191 10000000 -
10111111
N.N.H.H
Host: 65k
255.255.0.0 Medium
network
C 192-223 11000000 -
11011111
N.N.N.H
Host: 254
255.255.255.0 Small network
D 224-239 11100000 -
11101111
Not for
commercial use
255.255.255.255 Multicasting
as a host
E 240-254 11110000 -
11111111
- Reserved - for
experimental
use
Extra!!!
• IP Addressing Rules
1. All Host portions cannot be ZERO
(0=network ID/00000000)
2. All Host portions cannot be 255 as 255 is a
broadcast address in any network
(255=1=broadcast ID/11111111)
3. No computing device can be assigned an IP
of 127.0.0.1 as it is a LOOPBACK IP address
(localhost)
4. All Host portion should be unique in any given
network.
Private and Public IP Addresses
• All hosts that connect directly to the Internet require a
unique public IP address. An IP address is
considered public if the IP number is valid.
10.0.0.1 (private)
11.1.1.1 (public)
Types of Addressing
• IP addresses also categorized as unicast,
broadcast or multicast.
• Dynamic/automatic
– Automatically received IP address from DHCP
server
Static Addressing
Advantages Disadvantages
If you run servers, you will You can't move your
always know where in the machine to a different subnet
world it is and or login and expect it to work. You
remotely need to reconfigure it
Useful for printer setting
Dynamic Addressing
Advantages Disadvantages
IP configuration information You can't move your
gets automatically configured machine to a different subnet
for client machine by the and expect it to work. You
DHCP server. need to reconfigure it
Less security risk as the
computer is assigned a new
IP address whenever you log
on.
Dynamic Addressing (cont…)
• DHCP Server