More than one path may exist betwwen source and destination in a network. The data received from the transport layer is reframed into packets.The packets may be transferred through different paths. So,the numbering of packets is necessary to arrange the packets into original order.
These functionalities are carried out in the network layer. the network layer interconnects the device and transfer the packet by choosing the optimal network path. These functionalities are discussed in this chapter.
The network Layer is the third layer in the OSI model of computer networks. Its main function is to transfer network packets from the source to the destination. It is involved both the source host and the destination host.
At the source, it accepts a packet from the transport layer, encapsulates it in a datagram, and then delivers the packet to the data link layer so that it can further be sent to the receiver. At the destination, the datagram is decapsulated, and the packet is extracted and delivered to the corresponding transport layer.
Here the function of network layer
Network layer is majorly focused on getting packets from the source to the destination, routing error handling and congestion control. Before learning about design issues in the network layer, let’s learn about it’s various functions.
The network layer comes with some design issues they are described as follows:
Store and Forward packet switching: The host sends the packet to the nearest router. This packet is stored there until it has fully arrived once the link is fully processed by verifying the checksum then it is forwarded to the next router till it reaches the destination. This mechanism is called “Store and Forward packet switching.”
Services provided to Transport Layer: Through the network/transport layer interface, the network layer transfers it’s services to the transport layer. These services are described below. But before providing these services to the transfer layer following goals must be kept in mind :-
Connetionless Service:The routing and insertion of packets into subnet is done individually. No added setup is required
connectionless-service
Connection Oriented Service:The subnet connection-oriented service is called a virtual circuit subnet. the dedicated path is decided before transferring the packet.All the packets in that transmission are carried only in the same path.for example: telephone network.
The connection-oriented service includes three phrases
connection-oriented service
Service in Static Connetion: The static connection is said to be static routing or non-adaptive routing. This is possible in a network with a small static network routing table. The static table maintains only one entry for each destination.
Service in Dynamic Connetion:The dynamic connection is referred to as dynamic routing or adaptive routing . The routing table is dynamic,it identifies possible routes each time fpr each packet based on the traffic over the network.
In computer networks,routing is the process of selecting the path along with the data will be transferred from the source node (device) to the destination node.
This path is determined by the help of routing algorithms in computer networks
Types of Routing algorithm
A state occurring in network layer when the message traffic is so heavy that it slows down network response time.
Congestion control refers to the techniques used to control or prevent congestion. Congestion control techniques can be broadly classified into two categories:
Open loop congestion control policies are applied to prevent congestion before it happens. The congestion control is handled either by the source or the destination.
closed loop congestion control techniques are used to treat or alleviate congestion after it happens.
Protocol is a rule. The IP protocol is the rule about the format of datagram over the network.
The IP datagram contains the header and text part. The header part itself contains the fixed size and variable size part.
Ip protocol header
If I want to download a file fromthe internet or load a web page or literally do anything related to the internet, my computer must have an address so that other computers can find and locate mine in order to deliver that particular file or webpage that I am requesting. In technical terms, that address is called IP Address or Internet Protocol Address.
IP addresss
The Ip protocol is used to transfer the message. There are several other protocols to control the network activities.
The unexcepted event occurred over the network is reported by the ICMP.The router also monitors the event on the network
The protocol used to ask the ethernet address of a particular host is address Resolution protocol.
RARP stand for Reverse Address Resolution Protocol.
BOOTP stand for Boostrap Protocol.
DHCP stand for Dynamic Host Configuration Protocol.