UNIT 3
UNIT 3
UNIT 3
NETWORK LAYER
What is Network Layer?
The Network Layer is the third layer of the OSI model.
The network layer translates the logical addresses into physical
addresses.
It handles the service requests from the transport layer and
further forwards the service request to the data link layer.
The main role of the network layer is to move the packets from
sending host to the receiving host.
Switching:
Switching is the process of transferring data packets from one
device to another in a network, or from one network to another,
using specific devices called switches.
Switching technique is used to connect the systems for making
one-to-one communication.
Packet Switching:
The packet switching is a switching technique in which the
message is sent in one go, but it is divided into smaller
pieces, and they are sent individually.
The message splits into smaller pieces known as packets and
packets are given a unique number to identify their order at
the receiving end.
Every packet contains some information in its headers such
as source address, destination address and sequence
number.
Every packet contains some information in its headers such
as source address, destination address and sequence
number.
Packets will travel across the network, taking the
All the packets are reassembled at the receiving end in
correct order.
If any packet is missing or corrupted, then the message will
be sent to resend the message.
The correct order of the packets is reached, then the
acknowledgment message will be sent.
IPv4:
IPv4 stands for Internet Protocol (IP) version 4. Launched in the
year 1983, it is the first and the oldest version of Internet Protocol. Till
several advantages:
3.Enhanced Security
1. Network Portion:
Identifies the specific network to which the device belongs.
All devices on the same network share the same network portion
of the IP address.
Subnet Mask
For example:
IP: 192.168.1.1
Broadcast
A broadcast address is the last IP address in the range of a subnet.
When message is sent to this address, it is delivered to all hosts in that
subnet.
Advantages of Subnetting:
Efficient IP address management.
Improved network performance.
Enhanced security and control.
Easier troubleshooting.
Reduced broadcast traffic.
Disadvantages of Subnetting:
Increased network complexity.
• Ouery Message
Error-reporting messages:
The error-reporting message means that the router
encounters a problem when it processes an IP packet then it
reports a message.
Query Message :
The query messages are those messages that help the host to get
the specific information of another host.
Code:
It is an 8-bit field that defines the subtype of the ICMP message
Checksum:
It is a 16-bit field to detect whether the error exists in the message or
not.
Advantages of ICMP:
• Network Maintenance
• Automatic routing
Disadvantage of ICMP :
• Limited Functionality
• Resources Consumption
• Information Leakage
DHCP Server:
DHCP Client:
DHCP Relay:
Advantages of DHCP:
• Automatically IP assigned .
• Reduced Errors.
• Flexibility.
• Scalability.
Disadvantage of DHCP:
• Complexity.
• Single point of failure.
• Scalability Limitation.
• Security Risk.