The Network Layer is the most Typical and most important layer in TCP/IP or Internet stack. First of all, I would like to tell you that, the Application and the Transport Layer doesn’t reside on the routers and switches. It’s the only Network Layer and the underlying Layers, that are there on the intermediate routers.
Characteristics of Network Layer:
1. Host Addressing:
2. Connection-less Service:
- The Network Layer is responsible for Packet Forwarding and Routing .
On one hand, where forwarding includes the functioning between two routers, the Routing includes the functioning of the whole network. Routing determines the whole path and the number of routers that the packet should go through during its flow from sender to receiver. The algorithms that calculate these paths are known as Routing Algorithms.
Figure: Values in Forwarding Table at Different Routers
Now a question must be arising in your mind, that how these forwarding tables are configured within a Router. This is a very important concept, that describes the relation between forwarding and routing. The Routing algorithm determines the values that should be inserted within the router forwarding table. A routing algorithm may be centralized or de-centralized.
i) Centralized Algorithm:
The Algorithm may be operating in a single router or the centralized router and updating the records of each of the other routers also.
The disadvantage of this technique is that on a single router a lot of burdens is there. And the other disadvantage is, if the centralized router goes down, then the whole network will crash.
ii) De-Centralized Algorithm:
The Routing algorithm is running on every router.
In both the cases, the router receives a routing protocol message, and updates or configures its forwarding table.
- You can assume that, this all forwarding and routing configuration is done by humans. That is, persons are physically present at every router. Thus every human operator has to interact with each other in order to update the forwarding table records so that the traveling packets reach the correct desired destination. But as you know, human configuration are more prone to errors and will be very slow, in comparison to a routing protocol. Therefore we have software and routing protocols in our networks to automate our work, in order to provide a much more efficient and fast delivery of packets to the end users.
- There are numerous numbers of algorithms that run in the routers to provide fast and correct delivery of packets. For Example: Link State (LS) Routing Algorithm, Distance Vector (DV) Routing Algorithms etc. We will discuss each of these algorithms in detail in the coming posts.
As we all know, that humans understand the words and the letters very well. Thus domains name are very easy to remember by us. Like www.google.com, www.fitnytech.com etc. But what about routers and intermediate switches. These domains are of variable length. Thus they are very difficult to be understood by the routers. Therefore, there are fixed length IP addresses corresponding to every domain name, that are understand by routers. These IP addresses are of 32 bits. For Example : www.google.com corresponds to 126.96.36.199. Every section separated by the decimal is of 8 bits. Thus every section can contain number from 0 to 255 (2^8) .
The mapping of these domain names with the corresponding IP address is done by a protocol known as Domain Name System (DNS).
Services Provided by the Network Layer :
1. Guarantee of Delivery of Packets :
This means the packet will definitely reach its destination.
2. Guaranteed Delivery with Bounded Delay :
This means not only delivery of packet to its destination, but also within the given period of time. For Example : Delivery of packet in 50 msec.
3. Delivery of Packet in-order :
The packets will reach the destination in the same order as they were sent.
4. Minimal Jitter :
Jitter is the difference in the delays of the two packets of the same message arriving at a destination. Thus network must provide Minimal Jitter.
- Now you must always remember that, the Network Layer doesn’t provide any of these services. The Network Layer just provide a single service that is “Best Effort Service“. The Network Layer tries to provides the best of its effort to provide these above services to the communicating hosts. But it doesn’t guarantees anything.
Now let’s have a brief look at the parts of the Router or what is all there inside a router.
Figure: Architecture of a Router
1. Input Ports:
2. Switching fabric:
3. Output Ports:
4. Routing Processor:
Thank You so much for reading the article. We hope you liked it.