The network layer is the third layer in OSI model. The network layer is needed because once the data packet go out from a LAN into an internet / networks, we then need an IP address for each data packet to travel and at this point MAC address is not enough and hence we need a network layer.
A transport layer protocol provides a logical communication between processes; however, A network layer protocols provides logical communication between hosts.
Network Layer provides the following:
1. Unique address to every node which is known as IP address.
2. Routing traffics between different nodes.
Physical and data link are connected to the next hop, whereas the network layer is end to end.
Data link layer provides reliable communication from link to link; however, once the packet enters the internet cloud, it is very difficult to make sure that the data packet is not lost in the cloud. Therefore, the main concern for reliability is IP packet loss.
One of the main reasons for congestion and the loss of IP packets are due to the limited size of router buffers. All routers have two kinds of buffers, one at the input [inbuffer] and the other is at the output [outbuffer]. These buffers have certain limited size and if these buffers are completely occupied by data then there will be congestion in paths moving from this router and hence it will start dropping off IP packets. This will cause loss of IP packets due to congestion.
The solution to the problem of congestion and IP packet loss can be as follows:
1. ARQ, Automatic repeat request
ARQ can be used in case an IP packet is not received at the other end of the host. For, example if an IP packet is not received at the other end of the host, that host will then send a request to the first host indicating that certain packet was not received and then the first host will retransmit that packet again. This cycle will continue until all packets are received at the other end. ARQ will be explained in details in upcoming lectures.
2. Hypothetically, if the receiver host can somehow tell the sender host about the buffer configuration and path conditions, hence the sender can resize its packet.
There can be to most important reason for the loss of packet in IP cloud. They are:
Problem: When the source sends a packet to the destination, the destination sends an acknowledgement packet back to the receiver. Suppose, the acknowledgement packet was dropped in a network then the sender will resend the packet, but this will increase the delay.
Remedy: The source / sender uses a timer to keep a track of a packet transmitted to a network. If the reply is not received within the specified time, then that packet will be sent again by the sender. The value of this time is estimated by the sender with the help of RTT (Round Trip Time) value.
Round trip time (RTT) is equal to the sum of the time a packet takes to reach the destination and the time an acknowledgement packet is received by the sender.
RTT value will vary from packet to packet, as packets always does not follow same path. Since we have different value of RTT, therefore the sender host needs to have a moving average of RTT’s and that value will be used by its timer.
Now suppose, the acknowledgement packet gets delayed, then the sender will re-transmit the packet again. This time there will be duplicate packets at the destination. The destination host will then drop one of the duplicate packets. Such kind of scenarios can also cause congestion in a network due to duplicate package.
A point to Remember: Data is originated by an application goes down to different layers of OSI model to physical layer and then into the cloud, reaches the destination and again goes from Physical layer to application and finally stored by it.
Click here to read more
What is the Main Cause of a Heart Attack? What is its Solution? A heart attack is the blockage of… Read More
In the vast economic arena, one term that often takes center stage, inciting extensive debates and discussions, is the "debt… Read More
De-Dollarization: The Changing Face of Global Finance The financial landscape is in a state of flux, with an intriguing economic… Read More
The curtains closed on a dramatic Bundesliga season with Bayern Munich standing tall once again, clinching their 11th straight title.… Read More
The Unfolding Story of Celine Dion's Health In recent news that has left fans across the globe stunned, iconic singer… Read More
As the echoes of the recent NBA season start to fade, the attention of enthusiasts is firmly glued to one… Read More
View Comments
@Mikel You have explained it all so well. Now I understand why we keep getting that 'time out' message