SlideShare a Scribd company logo
1 of 17
Computer Networks
LEC #2
Communicating Over the
Network
Computer Networks
LEC #5
Network Layer
Lecture Outlines
2
 Network Layer.
Addressing
Subnetting
Mask (default and subnet)
Routing
Next
Lecture
Network Layer
Network-layer services and protocols
 transport packet from sending to
receiving host
 sender: encapsulates segments into
packet header, passes to datalink layer
 receiver: delivers packet to transport
layer protocol
 network layer protocols in every
Internet device: hosts, routers
mobile network
enterprise
network
national or global ISP
datacenter
network
applicatio
n
transport
network
link
physical
applicatio
n
transport
network
link
physical
networ
k
link
physica
l
networ
k
link
physica
l
networ
k
link
physica
l
networ
k
link
physica
l
networ
k
link
physica
l
 Routers:
 examines header fields in all IP packets passing through it and moves
packet from input ports to output ports to transfer it along end-end
path
 Network layer help to communication from Host to Host through IP
(internet protocol) addressing
Network Layer
Connection Oriented and Connectionless
Connection-oriented protocols, such as TCP, require that control data be
exchanged to establish the connection and additional fields in the PDU
(protocol data unit) header.
 Because IP is connectionless, it requires no initial exchange of control
information to establish an end-to-end connection before packets are
forwarded,
This process greatly reduces the overhead of IP.
Addressing
 IP address (Logical address) :
Internet Protocol (IP) is a numerical label assigned to each
computer (host)
in the network for communication.
 There are two version from IP:
 IP4 : 32 bits (written by binary in 4 parts separated by . 2 32 = 4 294967 296
devices)
 IP6 : 128 bits (written by hex decimal in 8 parts separated by : (2128 )
Decimal notation
1 0
Binary notation
• To convert IP Address from Binary to Decimal
notation
128 64 32 16 8 4 2 1
1 0 0 1 0 0 0 1
 128 + 16 + 1 = 145
First
Byte
Second
Byte
Third
Byte
Fourth
Byte
128 64 32 16 8 4 2 1
0 0 0 0 1 0 1 0
 8 + 2 = 10
128 64 32 16 8 4 2 1
0 0 1 0 0 0 1 0
 32 + 2 = 34
128 64 32 16 8 4 2 1
0 0 0 0 0 0 1 1
 2 + 1 = 3
Addressing
How to convert
binary to decimal
• To convert IP Address from Decimal to Binary
notation
First
Byte
Third
Byte
Fourth
Byte
2 145
2 72
2 36
2 18
2 9
2 4
2 2
1
1
0
0
0
1
0
0
1
10010001
2 10
2 5
2 2
2 1
0
1
0
1
0
0
0
0
Second
Byte
00001010
2 34
2 17
2 8
2 4
2 2
1
0
1
0
0
0
1
0
0
2 3
1
1
1
0
0
0
0
0
0
00100010 00000011
Addressing
How to convert
decimal to binary
1.1
1.2
1.3
2.1
2.2
3.1
3.2
Anatomy of an IPv4 Address
• To identify a path or "route" through a network, the address must be
composed of two parts: 1) Network portion 2) Host portion
IP Address 192. 168. 1. 2
Network portion Host portion
Anatomy of an IPv4 Address
• Network Portion:
 At Layer 3, we define a network as a group of hosts that have identical
bit patterns in the network address portion of their addresses.
192.168.1.2 192 168 1 2
192.168.1.67 192 168 1 67
192.168.1.204 192 168 1 204
Network portion Host portion
• Host Portion:
 There are a variable number of bits that are called the host portion of
the address.
 The number of bits used in this host portion determines the number of
hosts that we can have within the network.
Addressing
Address is divided into 5 classes A, B, C, D, E.
The Class of the address determines which part belongs to the network
address and which part belongs to the host address.
Which class of the following IP?
• 227.12.14.56 ?
• 134.11.78.9 ?
0 to 127
128 to 191 Net ID
192 to 223 Net ID Net ID
224 to 239
Class A
Class B
Class C
Class D
Class E 240 to 255
First Byte Second Byte Third Byte Fourth Byte
Class D
Class B
Used for Multicasting to multiple hosts.
Reserved for research and development.
Addressing
Class
First
Octet
Range
Number
of Network
Bits
Number
of Host
Bits
Number
of
Networks
Number
of Hosts
per Network
A 0-127 8 24 128 16,777,216
B 128-191 16 16 16,384 65,536
C 192-223 24 8 2,097,152 256
For example class A reserve first part which is 8 bits (0-7) 2 7 =128 Networks
and, number of hosts is 16777216 ( reserve 3 parts which is 24 bits 2 24
=16777216.
Generally : The address 127.0.0.1 is reserved for testing NIC (ping 127.0.0.1)
Note that
 Network id + zeros in binary → network address. (Not allocated to a host).
For example in class A :112.0.0.0 is called network address and you can not
use it.
 Network id + ones in binary → broadcast address. (Not allocated to a host).
For example in class A : 112.255.255.255 is called broadcast address and you
can not use it.
 Network id + host-id → host address. For example 112.10.12.13
An IP4 host address: 123.234.210.109
• 123 = network id - in class A
• What is the network address?
• What is the broadcast address?
• Which of the following is valid IP address in the network?
• 123.15.8.9
• 123.234.210.112
• 125.12.15.23
• 123.234.210.109
valid
valid
Invalid : another network
Invalid : duplicate IP
Examples
123.0.0.0
123.255.255.255
Examples
• Given the host address 132.6.17.85, find the network address?
• Answer: The network address is 132.6.0.0.
• How to think: This address lies in class is B. Then the first 2 bytes
defines the net-id. So, we can find the network address by replacing
the host-id bytes (17.85) with 0s. Therefore, The network address is
132.6.0.0.
• Note:
• A network-address is different from a net-id. A network-address has
both net-id and host-id, with 0s for the host-id.
 Find Network address for this IP’s
 23.56.7.91
 132.6.17.85
Class A (0-127) then the network address is 23.0.0.0
Class B (128-191) then the network address is 132.6.0.0
Network Address : Example
123.0.0.0
Class A
123.0.0.1 123.65.7.43
123.255.255.254 141.14.0.0
Class B
141.14.22.8 141.14.76.67
141.14.45.9
221.45.71.20
221.45.71.0
Class C
221.45.71.126
221.45.71.65
17

More Related Content

Similar to 6-LEC- 6.pptx Network Layer. Addressing Subnetting Mask (default and subnet) Routing

Similar to 6-LEC- 6.pptx Network Layer. Addressing Subnetting Mask (default and subnet) Routing (20)

Ip Addressing Basics
Ip Addressing BasicsIp Addressing Basics
Ip Addressing Basics
 
How IP address works
How IP address worksHow IP address works
How IP address works
 
1703_anusua_basuclassful addressing_IP_Addressing
1703_anusua_basuclassful addressing_IP_Addressing1703_anusua_basuclassful addressing_IP_Addressing
1703_anusua_basuclassful addressing_IP_Addressing
 
Chap2. ipv4-arp-icmp
Chap2. ipv4-arp-icmpChap2. ipv4-arp-icmp
Chap2. ipv4-arp-icmp
 
https://diplomasolutionstudents.blogspot.com/
https://diplomasolutionstudents.blogspot.com/https://diplomasolutionstudents.blogspot.com/
https://diplomasolutionstudents.blogspot.com/
 
IP Address
IP AddressIP Address
IP Address
 
Lecture 03 networking
Lecture 03 networkingLecture 03 networking
Lecture 03 networking
 
Computer network
Computer networkComputer network
Computer network
 
Umutima.ppt
Umutima.pptUmutima.ppt
Umutima.ppt
 
15 3
15 315 3
15 3
 
Ip address presentation
Ip address presentationIp address presentation
Ip address presentation
 
Week9 lec1
Week9 lec1Week9 lec1
Week9 lec1
 
IP Addressing & subnetting strategy
IP Addressing & subnetting strategyIP Addressing & subnetting strategy
IP Addressing & subnetting strategy
 
Ip addressing upload
Ip addressing uploadIp addressing upload
Ip addressing upload
 
Internet Protocol
Internet ProtocolInternet Protocol
Internet Protocol
 
Junos routing overview from Juniper
Junos routing overview from JuniperJunos routing overview from Juniper
Junos routing overview from Juniper
 
Ip addressing
Ip addressingIp addressing
Ip addressing
 
Module 6 ip addresing
Module 6   ip addresingModule 6   ip addresing
Module 6 ip addresing
 
IP Addressing.ppt
IP Addressing.pptIP Addressing.ppt
IP Addressing.ppt
 
IP and MAC Address
IP and MAC AddressIP and MAC Address
IP and MAC Address
 

More from ZahouAmel1

2- lec_2.pptxDesigning with Type, SpacingDesigning with Type, SpacingDesignin...
2- lec_2.pptxDesigning with Type, SpacingDesigning with Type, SpacingDesignin...2- lec_2.pptxDesigning with Type, SpacingDesigning with Type, SpacingDesignin...
2- lec_2.pptxDesigning with Type, SpacingDesigning with Type, SpacingDesignin...ZahouAmel1
 
1-Lect_1.pptxLecture 5 array in PHP.pptx
1-Lect_1.pptxLecture 5 array in PHP.pptx1-Lect_1.pptxLecture 5 array in PHP.pptx
1-Lect_1.pptxLecture 5 array in PHP.pptxZahouAmel1
 
Lecture 8 PHP and MYSQL part 2.ppType Classificationtx
Lecture 8 PHP and MYSQL part 2.ppType ClassificationtxLecture 8 PHP and MYSQL part 2.ppType Classificationtx
Lecture 8 PHP and MYSQL part 2.ppType ClassificationtxZahouAmel1
 
Lecture 9 CSS part 1.pptxType Classification
Lecture 9 CSS part 1.pptxType ClassificationLecture 9 CSS part 1.pptxType Classification
Lecture 9 CSS part 1.pptxType ClassificationZahouAmel1
 
Lecture 5 array in PHP.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 5 array in PHP.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 5 array in PHP.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 5 array in PHP.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvZahouAmel1
 
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvZahouAmel1
 
Lecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 10 CSS part 2.pptxvvvvvvvvvvvvvvZahouAmel1
 
Lec 1 Introduction to Computer and Information Technology #1.pptx
Lec 1 Introduction to Computer and Information Technology #1.pptxLec 1 Introduction to Computer and Information Technology #1.pptx
Lec 1 Introduction to Computer and Information Technology #1.pptxZahouAmel1
 
DB-Lec1.pptxUpdatedpython.pptxUpdatedpython.pptx
DB-Lec1.pptxUpdatedpython.pptxUpdatedpython.pptxDB-Lec1.pptxUpdatedpython.pptxUpdatedpython.pptx
DB-Lec1.pptxUpdatedpython.pptxUpdatedpython.pptxZahouAmel1
 
DB- lec2.pptxUpdatedpython.pptxUpdatedpy
DB- lec2.pptxUpdatedpython.pptxUpdatedpyDB- lec2.pptxUpdatedpython.pptxUpdatedpy
DB- lec2.pptxUpdatedpython.pptxUpdatedpyZahouAmel1
 
Updatedpython.pptxUpdatedpython.pptxUpdatedpython.pptx
Updatedpython.pptxUpdatedpython.pptxUpdatedpython.pptxUpdatedpython.pptxUpdatedpython.pptxUpdatedpython.pptx
Updatedpython.pptxUpdatedpython.pptxUpdatedpython.pptxZahouAmel1
 
4-Lect_4-2.pptx4-Lect_4-2.pptx4-Lect_4-2.pptx
4-Lect_4-2.pptx4-Lect_4-2.pptx4-Lect_4-2.pptx4-Lect_4-2.pptx4-Lect_4-2.pptx4-Lect_4-2.pptx
4-Lect_4-2.pptx4-Lect_4-2.pptx4-Lect_4-2.pptxZahouAmel1
 
5-LEC- 5.pptxTransport Layer. Transport Layer Protocols
5-LEC- 5.pptxTransport Layer.  Transport Layer Protocols5-LEC- 5.pptxTransport Layer.  Transport Layer Protocols
5-LEC- 5.pptxTransport Layer. Transport Layer ProtocolsZahouAmel1
 
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
 
7-Lect_7 .pptxNetwork LayerNetwork Layer
7-Lect_7 .pptxNetwork LayerNetwork Layer7-Lect_7 .pptxNetwork LayerNetwork Layer
7-Lect_7 .pptxNetwork LayerNetwork LayerZahouAmel1
 
8-Lect_8 Addressing the Network.tcp.pptx
8-Lect_8 Addressing the Network.tcp.pptx8-Lect_8 Addressing the Network.tcp.pptx
8-Lect_8 Addressing the Network.tcp.pptxZahouAmel1
 
9-Lect_9-1.pptx9-Lect_9-1.pptx9-Lect_9-1.pptx
9-Lect_9-1.pptx9-Lect_9-1.pptx9-Lect_9-1.pptx9-Lect_9-1.pptx9-Lect_9-1.pptx9-Lect_9-1.pptx
9-Lect_9-1.pptx9-Lect_9-1.pptx9-Lect_9-1.pptxZahouAmel1
 
9-Lect_9-2.pptx DataLink Layer DataLink Layer
9-Lect_9-2.pptx DataLink Layer DataLink Layer9-Lect_9-2.pptx DataLink Layer DataLink Layer
9-Lect_9-2.pptx DataLink Layer DataLink LayerZahouAmel1
 

More from ZahouAmel1 (18)

2- lec_2.pptxDesigning with Type, SpacingDesigning with Type, SpacingDesignin...
2- lec_2.pptxDesigning with Type, SpacingDesigning with Type, SpacingDesignin...2- lec_2.pptxDesigning with Type, SpacingDesigning with Type, SpacingDesignin...
2- lec_2.pptxDesigning with Type, SpacingDesigning with Type, SpacingDesignin...
 
1-Lect_1.pptxLecture 5 array in PHP.pptx
1-Lect_1.pptxLecture 5 array in PHP.pptx1-Lect_1.pptxLecture 5 array in PHP.pptx
1-Lect_1.pptxLecture 5 array in PHP.pptx
 
Lecture 8 PHP and MYSQL part 2.ppType Classificationtx
Lecture 8 PHP and MYSQL part 2.ppType ClassificationtxLecture 8 PHP and MYSQL part 2.ppType Classificationtx
Lecture 8 PHP and MYSQL part 2.ppType Classificationtx
 
Lecture 9 CSS part 1.pptxType Classification
Lecture 9 CSS part 1.pptxType ClassificationLecture 9 CSS part 1.pptxType Classification
Lecture 9 CSS part 1.pptxType Classification
 
Lecture 5 array in PHP.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 5 array in PHP.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 5 array in PHP.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 5 array in PHP.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
 
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 2 HTML part 1.pptxLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
 
Lecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 10 CSS part 2.pptxvvvvvvvvvvvvvvLecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
Lecture 10 CSS part 2.pptxvvvvvvvvvvvvvv
 
Lec 1 Introduction to Computer and Information Technology #1.pptx
Lec 1 Introduction to Computer and Information Technology #1.pptxLec 1 Introduction to Computer and Information Technology #1.pptx
Lec 1 Introduction to Computer and Information Technology #1.pptx
 
DB-Lec1.pptxUpdatedpython.pptxUpdatedpython.pptx
DB-Lec1.pptxUpdatedpython.pptxUpdatedpython.pptxDB-Lec1.pptxUpdatedpython.pptxUpdatedpython.pptx
DB-Lec1.pptxUpdatedpython.pptxUpdatedpython.pptx
 
DB- lec2.pptxUpdatedpython.pptxUpdatedpy
DB- lec2.pptxUpdatedpython.pptxUpdatedpyDB- lec2.pptxUpdatedpython.pptxUpdatedpy
DB- lec2.pptxUpdatedpython.pptxUpdatedpy
 
Updatedpython.pptxUpdatedpython.pptxUpdatedpython.pptx
Updatedpython.pptxUpdatedpython.pptxUpdatedpython.pptxUpdatedpython.pptxUpdatedpython.pptxUpdatedpython.pptx
Updatedpython.pptxUpdatedpython.pptxUpdatedpython.pptx
 
4-Lect_4-2.pptx4-Lect_4-2.pptx4-Lect_4-2.pptx
4-Lect_4-2.pptx4-Lect_4-2.pptx4-Lect_4-2.pptx4-Lect_4-2.pptx4-Lect_4-2.pptx4-Lect_4-2.pptx
4-Lect_4-2.pptx4-Lect_4-2.pptx4-Lect_4-2.pptx
 
5-LEC- 5.pptxTransport Layer. Transport Layer Protocols
5-LEC- 5.pptxTransport Layer.  Transport Layer Protocols5-LEC- 5.pptxTransport Layer.  Transport Layer Protocols
5-LEC- 5.pptxTransport Layer. Transport Layer Protocols
 
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) ...
 
7-Lect_7 .pptxNetwork LayerNetwork Layer
7-Lect_7 .pptxNetwork LayerNetwork Layer7-Lect_7 .pptxNetwork LayerNetwork Layer
7-Lect_7 .pptxNetwork LayerNetwork Layer
 
8-Lect_8 Addressing the Network.tcp.pptx
8-Lect_8 Addressing the Network.tcp.pptx8-Lect_8 Addressing the Network.tcp.pptx
8-Lect_8 Addressing the Network.tcp.pptx
 
9-Lect_9-1.pptx9-Lect_9-1.pptx9-Lect_9-1.pptx
9-Lect_9-1.pptx9-Lect_9-1.pptx9-Lect_9-1.pptx9-Lect_9-1.pptx9-Lect_9-1.pptx9-Lect_9-1.pptx
9-Lect_9-1.pptx9-Lect_9-1.pptx9-Lect_9-1.pptx
 
9-Lect_9-2.pptx DataLink Layer DataLink Layer
9-Lect_9-2.pptx DataLink Layer DataLink Layer9-Lect_9-2.pptx DataLink Layer DataLink Layer
9-Lect_9-2.pptx DataLink Layer DataLink Layer
 

Recently uploaded

APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 

Recently uploaded (20)

APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 

6-LEC- 6.pptx Network Layer. Addressing Subnetting Mask (default and subnet) Routing

  • 1. Computer Networks LEC #2 Communicating Over the Network Computer Networks LEC #5 Network Layer
  • 2. Lecture Outlines 2  Network Layer. Addressing Subnetting Mask (default and subnet) Routing Next Lecture
  • 4. Network-layer services and protocols  transport packet from sending to receiving host  sender: encapsulates segments into packet header, passes to datalink layer  receiver: delivers packet to transport layer protocol  network layer protocols in every Internet device: hosts, routers mobile network enterprise network national or global ISP datacenter network applicatio n transport network link physical applicatio n transport network link physical networ k link physica l networ k link physica l networ k link physica l networ k link physica l networ k link physica l  Routers:  examines header fields in all IP packets passing through it and moves packet from input ports to output ports to transfer it along end-end path
  • 5.  Network layer help to communication from Host to Host through IP (internet protocol) addressing Network Layer
  • 6. Connection Oriented and Connectionless Connection-oriented protocols, such as TCP, require that control data be exchanged to establish the connection and additional fields in the PDU (protocol data unit) header.  Because IP is connectionless, it requires no initial exchange of control information to establish an end-to-end connection before packets are forwarded, This process greatly reduces the overhead of IP.
  • 7. Addressing  IP address (Logical address) : Internet Protocol (IP) is a numerical label assigned to each computer (host) in the network for communication.  There are two version from IP:  IP4 : 32 bits (written by binary in 4 parts separated by . 2 32 = 4 294967 296 devices)  IP6 : 128 bits (written by hex decimal in 8 parts separated by : (2128 ) Decimal notation 1 0 Binary notation
  • 8. • To convert IP Address from Binary to Decimal notation 128 64 32 16 8 4 2 1 1 0 0 1 0 0 0 1  128 + 16 + 1 = 145 First Byte Second Byte Third Byte Fourth Byte 128 64 32 16 8 4 2 1 0 0 0 0 1 0 1 0  8 + 2 = 10 128 64 32 16 8 4 2 1 0 0 1 0 0 0 1 0  32 + 2 = 34 128 64 32 16 8 4 2 1 0 0 0 0 0 0 1 1  2 + 1 = 3 Addressing How to convert binary to decimal
  • 9. • To convert IP Address from Decimal to Binary notation First Byte Third Byte Fourth Byte 2 145 2 72 2 36 2 18 2 9 2 4 2 2 1 1 0 0 0 1 0 0 1 10010001 2 10 2 5 2 2 2 1 0 1 0 1 0 0 0 0 Second Byte 00001010 2 34 2 17 2 8 2 4 2 2 1 0 1 0 0 0 1 0 0 2 3 1 1 1 0 0 0 0 0 0 00100010 00000011 Addressing How to convert decimal to binary
  • 10. 1.1 1.2 1.3 2.1 2.2 3.1 3.2 Anatomy of an IPv4 Address • To identify a path or "route" through a network, the address must be composed of two parts: 1) Network portion 2) Host portion IP Address 192. 168. 1. 2 Network portion Host portion
  • 11. Anatomy of an IPv4 Address • Network Portion:  At Layer 3, we define a network as a group of hosts that have identical bit patterns in the network address portion of their addresses. 192.168.1.2 192 168 1 2 192.168.1.67 192 168 1 67 192.168.1.204 192 168 1 204 Network portion Host portion • Host Portion:  There are a variable number of bits that are called the host portion of the address.  The number of bits used in this host portion determines the number of hosts that we can have within the network.
  • 12. Addressing Address is divided into 5 classes A, B, C, D, E. The Class of the address determines which part belongs to the network address and which part belongs to the host address. Which class of the following IP? • 227.12.14.56 ? • 134.11.78.9 ? 0 to 127 128 to 191 Net ID 192 to 223 Net ID Net ID 224 to 239 Class A Class B Class C Class D Class E 240 to 255 First Byte Second Byte Third Byte Fourth Byte Class D Class B Used for Multicasting to multiple hosts. Reserved for research and development.
  • 13. Addressing Class First Octet Range Number of Network Bits Number of Host Bits Number of Networks Number of Hosts per Network A 0-127 8 24 128 16,777,216 B 128-191 16 16 16,384 65,536 C 192-223 24 8 2,097,152 256 For example class A reserve first part which is 8 bits (0-7) 2 7 =128 Networks and, number of hosts is 16777216 ( reserve 3 parts which is 24 bits 2 24 =16777216. Generally : The address 127.0.0.1 is reserved for testing NIC (ping 127.0.0.1) Note that  Network id + zeros in binary → network address. (Not allocated to a host). For example in class A :112.0.0.0 is called network address and you can not use it.  Network id + ones in binary → broadcast address. (Not allocated to a host). For example in class A : 112.255.255.255 is called broadcast address and you can not use it.  Network id + host-id → host address. For example 112.10.12.13
  • 14. An IP4 host address: 123.234.210.109 • 123 = network id - in class A • What is the network address? • What is the broadcast address? • Which of the following is valid IP address in the network? • 123.15.8.9 • 123.234.210.112 • 125.12.15.23 • 123.234.210.109 valid valid Invalid : another network Invalid : duplicate IP Examples 123.0.0.0 123.255.255.255
  • 15. Examples • Given the host address 132.6.17.85, find the network address? • Answer: The network address is 132.6.0.0. • How to think: This address lies in class is B. Then the first 2 bytes defines the net-id. So, we can find the network address by replacing the host-id bytes (17.85) with 0s. Therefore, The network address is 132.6.0.0. • Note: • A network-address is different from a net-id. A network-address has both net-id and host-id, with 0s for the host-id.  Find Network address for this IP’s  23.56.7.91  132.6.17.85 Class A (0-127) then the network address is 23.0.0.0 Class B (128-191) then the network address is 132.6.0.0
  • 16. Network Address : Example 123.0.0.0 Class A 123.0.0.1 123.65.7.43 123.255.255.254 141.14.0.0 Class B 141.14.22.8 141.14.76.67 141.14.45.9 221.45.71.20 221.45.71.0 Class C 221.45.71.126 221.45.71.65
  • 17. 17