Hello Friends, In this blog post(Need Of Network Layer In Computer Network) I am going to let you know about the network layer need, why do we need a network layer while establishing the communication over the network.
Inside this blog post(Need Of Network Layer In Computer Network), we will see What is the network layer in computer networks? What is the function of the network? Why do we need routing in a network?
What is the network layer in computer networks?
The network layer is the third most important layer in the OSI model and this network layer concerns the host and networking, manages to address, managing sub-network, and internetwork.
And the main work of the network layer is routing and delivering the data packet from source to destination with the selection of the optimal path.
What is the function of the network?
The network is responsible for the transmission of data from one device to another device in the network. It keeps all the accounts of transmitting applications to receiving applications in a database table.
Why do we need routing in a network?
To understand and manage the path and device structure it is necessary to build a proper architecture for addressing of device as well as details of paths so that a data packet…
… can easily be transmitted from source to destination by an optimal path. Routing is necessary to establish effective and fast communication between the devices.
What is the main function of the network layer?
The main work or objective of the network layer is to connect the two systems to make effective communication between them. The network layer is responsible to send the data packet to its destination by using an optimal path or way.
The network layer is responsible for routing a packet within the subnet, that is from the source to the destination nodes across multiple nodes in the same network, or across multiple networks.
This layer ensures the successful delivery of a packet to the destination node. To perform this, it has to choose a route. A route could be chosen before sending all the packets belonging to the same message(virtual circuit) or it could be chosen for each packet at each node(datagram).
This layer is also responsible for tackling the congestion problem at a node when there are too many packets stored at a node to be forwarded to the next node.
Where there is only one small network based on broadcast philosophy(e.g. a single ethernet LAN), this layer is either absent or has very minimal functionality.
There are many private and or public subnet operators who provide the hardware links and the software consisting of physical, data link, and network layers(X.25).
They guarantee error-free delivery of a packet to the destination at a charge. This layer has to carry out the accounting function to facilitate this billing based on how many packets are routed.
When packets are sent across national boundaries, the rates may change, thus making this accounting function complex. A router can connect two networks with different protocols, packet lengths, and formats.
The network layer is responsible for the creation of a homogenous network by helping to overcome these problems. At this layer, a header is added to a packet, which includes the source and destination addresses(logical addresses).
These are not the same as the physical addresses between each pair of adjacent nodes at the data link layer. If we want to send a packet from A to D(Fig1), the addresses of nodes A and D ( i,e ADDL(A) and ADDL(D)) are these logical addresses…
Which are added to the actual data to form a data unit at the network layer(Dn). These addresses, and in fact the whole of Dn remains unchanged throughout the journey of the packet from A to F to G to D.
Only the physical addresses of the adjacent nodes keep getting added and removed, as the packet travels from A to F to G To D. Finally, at node D, after verifying the addresses, ADDL(A) and ADDL(D) are removed and the actual data is recovered and sent to the transport layer at node D, as shown in fig2(a,b).
Using this blog post(Need Of Network Layer In Computer Network) we have gone through What is the network layer in computer networks? What is the function of the network? Why do we need routing in a network? network layer functions, network layer in computer networks notes, network layer protocols, duties of the network layer in computer networks.
In the case of any queries, you can write to us at [email protected] we will get back to you ASAP.
Hope! you would have enjoyed this post about ‘Need Of Network Layer In Computer Network’.
Please feel free to give your important feedback in the comment section below.
Have a great time! Sayonara!