SlideShare a Scribd company logo
1 of 15
Network Layer
Subnetting,IPV4 datagram format
Subnetting
Subnetting is a method of dividing a single physical network into
logical sub-networks (subnets).
Subnetting allows a business to expand its network without requiring
a new network number from its Internet service provider.
Advantages
• Subnetting helps to reduce the network traffic and also conceals network complexity.
• Reallocating IP Addresses:- A limited number of host allocations are available for each class; so
to allocate more ip adreesses ,we can do subnetting.
• Improves Network Speed:- It reduces traffic so increases speed.
• Improving Network Security:- Subnetting helps network administrators to reduce network-wide
threats
• Reliving Network Congestion:- Without a subnet, data packets from every other computer on
the network would be visible to all computers and servers.
• Efficiency:- Subnetting is used to simplify network traffic by eliminating the need for
additional routers.
Subnetting
Two level of hierarchy(No Subnetting)
Each address in the block can be considered as
a two-level hierarchical structure:
the leftmost n bits (prefix) define the
network;
the rightmost 32 - n bits define the host.
Three-Levels of Hierarchy: Subnetting
An organization that is granted a large block
of addresses may want to create clusters of
networks (called subnets) and divide the
addresses between the different subnets. The
rest of the world still sees the organization as
one entity; however, internally there are
several subnets
Example of subnetwork
suppose an organization is given the block 17.12.40.0/26, which
contains 64 addresses.
The organization has three offices and needs to divide the
addresses into three subblocks of 32, 16, and 16 addresses. We can
find the new masks
by using the following arguments:
1. Suppose the mask for the first subnet is n1, then 2 32- n1 must
be 32, which means
that n1 = 27.
2. Suppose the mask for the second subnet is n2, then 2 32- n2 must
be 16, which
means that n2 = 28.
3. Suppose the mask for the third subnet is n3, then 232- n3 must
be 16, which means
that n3 = 28.
Finding Subnet address
find the subnet addresses from one of the addresses in
the subnet.
a) In subnet 1, the address 17.12.14.29/27 can give us the subnet address if we
use the
mask /27 because
Host: 00010001 00001100 00001110 00011101
Mask: /27
Subnet:00010001 00001100 00001110 00000000 .... (17.12.14.0)
b) In subnet 2, the address 17.12.14.45/28 can give us the subnet address if we
use the
mask /28
Host: 00010001 00001100 00001110 00101101
Mask: /28
Subnet: 00010001 00001100 00001110 00100000 .... (17.12.14.32)
c) In subnet 3, the address 17.12.14.50/28 can give us the subnet address if we
use the
mask /28 because
Host: 00010001 00001100 00001110 00110010
Mask: /28
Subnet: 00010001 00001100 00001110 00110000 .... (17.12.14.48)
IPv4
An IPv4 address consists of four bytes (32 bits).
These bytes are also known as octets.
Ex: 234.5.67.190.
Each sub area can vary from 000 to 255
(2power8 = 256)
--- . --- . --- . ---
0.0.0.0 through 255.255.255.255
total of 32 bits
2 power32 4 billion addresses
IPv6
IPv6 addresses are 16 bytes (128 bits) long
2 power 128 unique addresses
Typically written as:
each byte in turns is represented as a pair of
hexadecimal numbers, like in the following
example:
E3D7:0000:0000:0000:51F4:9BC8:C0A8:6420
length
32 bits
data
(variable length,
typically a TCP
or UDP segment)
header
checksum
time to
live
32 bit source IP address
ver head. type of
len service
16-bit identifier flgs
fragment
offset
upper
layer
32 bit destination IP address
options (if any)
IPv4 datagram format
total datagram
length (bytes)
for
fragmentation/
reassembly
IP protocol version
number
header length
(bytes)
“type” of data
max number
remaining hops
(decremented at
each router)
upper layer protocol
to deliver payload to e.g. timestamp,
record route
taken, specify
list of routers
to visit.
how much overhead?
 20 bytes of TCP
 20 bytes of IP
 = 40 bytes + app
layer overhead
4-10
Network Layer
IPv4 datagram
 VERSION: Version of the IP protocol (4 bits), which is 4 for
IPv4
 HLEN: IP header length (4 bits), which is the number of 32 bit
words in the header. The minimum value for this field is 5 and
the maximum is 15.
 Type of service: Low Delay, High Throughput, Reliability (8
bits)
 Total Length: Length of header + Data (16 bits), which has a
minimum value 20 bytes and the maximum is 65,535 bytes.
 Identification: Unique Packet Id for identifying the group of
fragments of a single IP datagram (16 bits)
 Flags: 3 flags of 1 bit each : reserved bit (must be zero), do
not fragment flag, more fragments flag (same order)
 Fragment Offset: Represents the number of Data Bytes ahead
of the particular fragment in the particular Datagram.
Specified in terms of number of 8 bytes, which has the
maximum value of 65,528 bytes.
IPv4 datagram
 Time to live: Datagram’s lifetime (8 bits), It prevents the
datagram to loop through the network by restricting the
number of Hops taken by a Packet before delivering to the
Destination.
 Protocol: Name of the protocol to which the data is to be
passed (8 bits)
 Header Checksum: 16 bits header checksum for checking
errors in the datagram header
 Source IP address: 32 bits IP address of the sender
 Destination IP address: 32 bits IP address of the receiver
 Option: Optional information such as source route, record
route. Used by the Network administrator to check whether
a path is working or not.
IPv6: motivation
 initial motivation: 32-bit address space soon to be
completely allocated.
 additional motivation:
 header format helps speed processing/
forwarding
 header changes to facilitate QoS
IPv6 datagram format:
 fixed-length 40 byte header
 no fragmentation allowed
4-13
Network Layer
IPv6 datagram format
priority: identify priority among datagrams in flow
flow Label: identify datagrams in same “flow.”
(concept of“flow” not well defined).
next header: identify upper layer protocol for data
ver pri flow label
payload len next hdr hop limit
source address
(128 bits)
destination address
(128 bits)
data
32 bits
4-14
Network Layer
Other changes from IPv4
4-15
Network Layer
 checksum:removed entirely to reduce processing
time at each hop
 options: allowed, but outside of header
, indicated
by “Next Header” field
 ICMPv6: new version of ICMP
 additional message types,e.g.“Packet Too Big”
 multicast group management functions

More Related Content

Similar to subnetting

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
 
2 logical addressing
2 logical addressing2 logical addressing
2 logical addressinggafurov_x
 
Internet Protocol version 6
Internet Protocol version 6Internet Protocol version 6
Internet Protocol version 6Rekha Yadav
 
Custom_IP_Network_Protocol_and_Router
Custom_IP_Network_Protocol_and_RouterCustom_IP_Network_Protocol_and_Router
Custom_IP_Network_Protocol_and_RouterVishal Vasudev
 
IP Addressing & subnetting strategy
IP Addressing & subnetting strategyIP Addressing & subnetting strategy
IP Addressing & subnetting strategyMustafa Salam
 
IPv4 addressing and subnetting
IPv4 addressing and subnettingIPv4 addressing and subnetting
IPv4 addressing and subnettingShashank Asthana
 
Introduction to IP
Introduction to IPIntroduction to IP
Introduction to IPaibad ahmed
 
Exploration network chapter_5_modified
Exploration network chapter_5_modifiedExploration network chapter_5_modified
Exploration network chapter_5_modifiedrajesh531
 
Session 2 Tp 2
Session 2 Tp 2Session 2 Tp 2
Session 2 Tp 2githe26200
 
Training Day Slides
Training Day SlidesTraining Day Slides
Training Day Slidesadam_merritt
 
Clase 1 Direccionamiento IPv4.pdf
Clase 1 Direccionamiento IPv4.pdfClase 1 Direccionamiento IPv4.pdf
Clase 1 Direccionamiento IPv4.pdfFERNANDOBONILLA43
 
Ip protocals subnetworking
Ip protocals  subnetworkingIp protocals  subnetworking
Ip protocals subnetworkingCathryn Kuteesa
 

Similar to subnetting (20)

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) ...
 
CCNA 200-120 Exam Quick Notes
CCNA 200-120 Exam Quick NotesCCNA 200-120 Exam Quick Notes
CCNA 200-120 Exam Quick Notes
 
IPV6.ppt
IPV6.pptIPV6.ppt
IPV6.ppt
 
2 logical addressing
2 logical addressing2 logical addressing
2 logical addressing
 
Internet Protocol version 6
Internet Protocol version 6Internet Protocol version 6
Internet Protocol version 6
 
Custom_IP_Network_Protocol_and_Router
Custom_IP_Network_Protocol_and_RouterCustom_IP_Network_Protocol_and_Router
Custom_IP_Network_Protocol_and_Router
 
IP Addressing & subnetting strategy
IP Addressing & subnetting strategyIP Addressing & subnetting strategy
IP Addressing & subnetting strategy
 
15 3
15 315 3
15 3
 
IP Address
IP AddressIP Address
IP Address
 
Index
IndexIndex
Index
 
Index
IndexIndex
Index
 
IPv4 addressing and subnetting
IPv4 addressing and subnettingIPv4 addressing and subnetting
IPv4 addressing and subnetting
 
Introduction to IP
Introduction to IPIntroduction to IP
Introduction to IP
 
Exploration network chapter_5_modified
Exploration network chapter_5_modifiedExploration network chapter_5_modified
Exploration network chapter_5_modified
 
Session 2 Tp 2
Session 2 Tp 2Session 2 Tp 2
Session 2 Tp 2
 
Training Day Slides
Training Day SlidesTraining Day Slides
Training Day Slides
 
Ip seminar
Ip seminarIp seminar
Ip seminar
 
Clase 1 Direccionamiento IPv4.pdf
Clase 1 Direccionamiento IPv4.pdfClase 1 Direccionamiento IPv4.pdf
Clase 1 Direccionamiento IPv4.pdf
 
Ip protocals subnetworking
Ip protocals  subnetworkingIp protocals  subnetworking
Ip protocals subnetworking
 

Recently uploaded

(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxhumanexperienceaaa
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...ranjana rawat
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 

Recently uploaded (20)

(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 

subnetting

  • 2. Subnetting Subnetting is a method of dividing a single physical network into logical sub-networks (subnets). Subnetting allows a business to expand its network without requiring a new network number from its Internet service provider. Advantages • Subnetting helps to reduce the network traffic and also conceals network complexity. • Reallocating IP Addresses:- A limited number of host allocations are available for each class; so to allocate more ip adreesses ,we can do subnetting. • Improves Network Speed:- It reduces traffic so increases speed. • Improving Network Security:- Subnetting helps network administrators to reduce network-wide threats • Reliving Network Congestion:- Without a subnet, data packets from every other computer on the network would be visible to all computers and servers. • Efficiency:- Subnetting is used to simplify network traffic by eliminating the need for additional routers.
  • 3. Subnetting Two level of hierarchy(No Subnetting) Each address in the block can be considered as a two-level hierarchical structure: the leftmost n bits (prefix) define the network; the rightmost 32 - n bits define the host. Three-Levels of Hierarchy: Subnetting An organization that is granted a large block of addresses may want to create clusters of networks (called subnets) and divide the addresses between the different subnets. The rest of the world still sees the organization as one entity; however, internally there are several subnets
  • 4. Example of subnetwork suppose an organization is given the block 17.12.40.0/26, which contains 64 addresses. The organization has three offices and needs to divide the addresses into three subblocks of 32, 16, and 16 addresses. We can find the new masks by using the following arguments: 1. Suppose the mask for the first subnet is n1, then 2 32- n1 must be 32, which means that n1 = 27. 2. Suppose the mask for the second subnet is n2, then 2 32- n2 must be 16, which means that n2 = 28. 3. Suppose the mask for the third subnet is n3, then 232- n3 must be 16, which means that n3 = 28.
  • 5.
  • 6. Finding Subnet address find the subnet addresses from one of the addresses in the subnet. a) In subnet 1, the address 17.12.14.29/27 can give us the subnet address if we use the mask /27 because Host: 00010001 00001100 00001110 00011101 Mask: /27 Subnet:00010001 00001100 00001110 00000000 .... (17.12.14.0) b) In subnet 2, the address 17.12.14.45/28 can give us the subnet address if we use the mask /28 Host: 00010001 00001100 00001110 00101101 Mask: /28 Subnet: 00010001 00001100 00001110 00100000 .... (17.12.14.32) c) In subnet 3, the address 17.12.14.50/28 can give us the subnet address if we use the mask /28 because Host: 00010001 00001100 00001110 00110010 Mask: /28 Subnet: 00010001 00001100 00001110 00110000 .... (17.12.14.48)
  • 7. IPv4 An IPv4 address consists of four bytes (32 bits). These bytes are also known as octets. Ex: 234.5.67.190. Each sub area can vary from 000 to 255 (2power8 = 256) --- . --- . --- . --- 0.0.0.0 through 255.255.255.255 total of 32 bits 2 power32 4 billion addresses
  • 8. IPv6 IPv6 addresses are 16 bytes (128 bits) long 2 power 128 unique addresses Typically written as: each byte in turns is represented as a pair of hexadecimal numbers, like in the following example: E3D7:0000:0000:0000:51F4:9BC8:C0A8:6420
  • 9.
  • 10. length 32 bits data (variable length, typically a TCP or UDP segment) header checksum time to live 32 bit source IP address ver head. type of len service 16-bit identifier flgs fragment offset upper layer 32 bit destination IP address options (if any) IPv4 datagram format total datagram length (bytes) for fragmentation/ reassembly IP protocol version number header length (bytes) “type” of data max number remaining hops (decremented at each router) upper layer protocol to deliver payload to e.g. timestamp, record route taken, specify list of routers to visit. how much overhead?  20 bytes of TCP  20 bytes of IP  = 40 bytes + app layer overhead 4-10 Network Layer
  • 11. IPv4 datagram  VERSION: Version of the IP protocol (4 bits), which is 4 for IPv4  HLEN: IP header length (4 bits), which is the number of 32 bit words in the header. The minimum value for this field is 5 and the maximum is 15.  Type of service: Low Delay, High Throughput, Reliability (8 bits)  Total Length: Length of header + Data (16 bits), which has a minimum value 20 bytes and the maximum is 65,535 bytes.  Identification: Unique Packet Id for identifying the group of fragments of a single IP datagram (16 bits)  Flags: 3 flags of 1 bit each : reserved bit (must be zero), do not fragment flag, more fragments flag (same order)  Fragment Offset: Represents the number of Data Bytes ahead of the particular fragment in the particular Datagram. Specified in terms of number of 8 bytes, which has the maximum value of 65,528 bytes.
  • 12. IPv4 datagram  Time to live: Datagram’s lifetime (8 bits), It prevents the datagram to loop through the network by restricting the number of Hops taken by a Packet before delivering to the Destination.  Protocol: Name of the protocol to which the data is to be passed (8 bits)  Header Checksum: 16 bits header checksum for checking errors in the datagram header  Source IP address: 32 bits IP address of the sender  Destination IP address: 32 bits IP address of the receiver  Option: Optional information such as source route, record route. Used by the Network administrator to check whether a path is working or not.
  • 13. IPv6: motivation  initial motivation: 32-bit address space soon to be completely allocated.  additional motivation:  header format helps speed processing/ forwarding  header changes to facilitate QoS IPv6 datagram format:  fixed-length 40 byte header  no fragmentation allowed 4-13 Network Layer
  • 14. IPv6 datagram format priority: identify priority among datagrams in flow flow Label: identify datagrams in same “flow.” (concept of“flow” not well defined). next header: identify upper layer protocol for data ver pri flow label payload len next hdr hop limit source address (128 bits) destination address (128 bits) data 32 bits 4-14 Network Layer
  • 15. Other changes from IPv4 4-15 Network Layer  checksum:removed entirely to reduce processing time at each hop  options: allowed, but outside of header , indicated by “Next Header” field  ICMPv6: new version of ICMP  additional message types,e.g.“Packet Too Big”  multicast group management functions