3.3 subnetting
3.3 subnetting
1
Subnetting
name given to piece of broken network or can also be called as Substitute network
is known as Subnet.
Subnets are legal small parts of IP (Internet Protocol) Addressing process
Efficiency of the Network- data being transmitted can get to its destination as fast as possible
Provides Network Security - harder for intruders to move through a company's network,
Internet Protocol (IP) Addressing Relocation
2
Subnetting Example
3
SUBNETTING AND SUPERNETTING
To alleviate address depletion, two strategies were proposed and, to some extent, implemented:
4
5
Public and Private Address
Public Address
A public IP address is a public address assigned to your network by your internet
service provider (ISP)
It is used to provide access over the internet.
Private Address
A private IP address- one that is assigned to your device directly by your network
router.
6
Network address
7
Compare Public and Private Address
Sr. No Key Private IP Address Public IP Address
It is a local IP address, A public IP address is the public-facing IP address
1. Definition It is the IP address that your network provided to your network by your internet service
router allocates to your device. provider (ISP).
9
How to do Subnetting?
10
Subnetting
11
Subnetting Example
12
Subnetting Example
13
Subnetting Example
14
Subnetting Example
15
Subnetting Example
16
Subnetting Example
17
Subnetting Example
18
Subnetting Example
19
Subnetting Example
20
Subnetting Example
21
classless interdomain routing or CIDR
Slash Notation
22
23
24
25
Network Address Translation(NAT)
26
Loopback Address
27
Link-Local Address /APIPA
28
29
30
Datagram is a variable-length packet with two parts: header and data.
Header - 20 to 60 bytes in length and contains information essential to routing and delivery
Version (VER) - 4-bit field defines the version of the IPv4 protocol.
Currently version is 4.
IPv4 software running in processing machine - format of version 4.
If machine is some other version of IPv4 - datagram is discarded
Header length (HLEN).
4-bit field defines total length of datagram header in 4-byte words.
length of the header is variable (between 20 and 60 bytes).
When there are no options, the header length is 20 bytes - value of this field is 5 (5 x 4 = 20).
When option field is at its maximum size, value of this field is 15 (15 x 4 = 60)
Services
IETF has changed the interpretation - 8-bit field.
Previously called service type, called differentiated services.
31
Service type or differentiated services
Types of service
32
Default Type of Services
33
Total length (16 bits)
To find the length of the data coming from the upper layer, subtract header length from total length.
The header length - multiplying value in the HLEN field by 4
Length of data =total length - header length
Identification. This field is used in fragmentation.
Flags - This field is used in fragmentation
Fragmentation offset. This field is used in fragmentation
Time to live - A datagram has limited lifetime in its travel through an internet.
This field was originally designed to hold a timestamp, which was decremented by each visited router.
The datagram was discarded when the value became zero.
Protocol.
8-bit field defines higher-level protocol that uses the services of the IPv4 layer.
IPv4 datagram can encapsulate data from several higher-level protocols such as TCP, UDP, ICMP, and IGMP.
This field specifies final destination protocol to which the IPv4 datagram is delivered.
34
Checksum.
Source address.
This 32-bit field defines the IPv4 address of the source.
This field must remain unchanged during the time the IPv4 datagram travels from the source host to destination host.
Destination address.
This 32-bit field defines the IPv4 address of the destination.
This field must remain unchanged during the time the IPv4 datagram travels from source host to the destination host.
Fragmentation
A datagram can travel through different networks.
Each router decapsulates the IPv4 datagram from frame it receives, processes it.
Encapsulates it in another frame.
The format and size of received frame depend on protocol used by physical network through which frame has just
travelled
35
Session Handler Details
(Dr. L.RAJA)
P/ECE
[email protected]
36