CN01-Network Layer (IP Protocol Part1)
CN01-Network Layer (IP Protocol Part1)
Engineering
Computer Network
Network Layer: IP Protocol
(Part “I” IPv4 Addressing)
Computer Network
Dr. Ahmed Abdel Halim @ Helwan University
Fall 2019
Dr. Ahmed M. Abd El-Haleem
Assistant Professor in
Communication and Electronic Department
Faculty of Engineering, Helwan University
E-mail: [email protected]
OSI Reference Model
3
OSI Reference Model
4
Layers with TCP/IP and OSI
5
Model
Network layer functions
6
Encapsulation
Decapsulation
IP version 6 (IPv6)
unicast
broadcast multicast
Segment
Packet
Frame
Destination address
&
Facilities requests
(priority,….)
Addressing levels
12
IPv4 Addresses
IP address is a logical (Software) address.
Uniquely and universally defines the device.
An IPv4 address is a 32-bit address.
Address space is the total number of
addresses used by the protocol.
If a protocol uses n bits to define an address,
the address space is 2n.
The address space of IPv4 is 232 or
4,294,967,296.
IPv4 Addresses
16
network address.
The other 3 octets contain the Host address.
/8
/16
/24
IPv4 Subnet Mask: Finding the
Network (Subnet) Address
35
Bitwise
AND
Operation
IPv4 Subnet Mask: Finding the
Network (Subnet) Address
36
2. Short-Cut Method:
1) Unicast 2) Broadcast
Borrowing 1 bit 2 = 2
1
IP address
subnets Subnet
bits
Borrowing 1 Bit from the host portion creates 2 subnets with the same
subnet mask
Basic Subnetting
48
Subnetting Formulas
Calculate number of
subnets
Calculate number of
hosts
Formula to determine number of usable hosts: 2^n-2
▪ 2^n (where n is the number of remaining host bits) is used to calculate
the number of hosts.
▪ -2 (The subnetwork ID and broadcast address cannot be used on each
subnet.)
Basic Subnetting
49
Creating 2 Subnets
Subnet 0
Network 192.168.1.0-127/25
Subnet 0
Mask: 255.255.255.128
Basic Subnetting
50
Creating 2 Subnets
Subnet 1
Network 192.168.1.128-255/25
Subnet 1
Mask: 255.255.255.128
Basic Subnetting
51
172.16.0.0/21
VLSM (Cont.)
62
VLSM (Cont.)
63
DHCP Operation:
DHCP server is
Contacted and
address requested
– chooses address
from a configured
range of addresses
called a pool and
“leases” it to the
host for a set
period.
Assignment of IP Addresses
70