Got it

Network Layer - Forwarding and Routing

Latest reply: Mar 18, 2022 14:10:09 1622 84 56 0 0

Hello Everyone!


Today, we will briefly discuss about the concept of forwarding and routing in network layer.


The role of the network layer is deceptively simple—to move packets from a sending host to a receiving host. To do so, two important network-layer functions can be identified:


• Forwarding. When a packet arrives at a router’s input link, the router must move the packet to the appropriate output link. For example, a packet arriving from Host H1 to Router R1 must be forwarded to the next router on a path to H2. 


• Routing. The network layer must determine the route or path taken by packets as they flow from a sender to a receiver. The algorithms that calculate these paths are referred to as routing algorithms. A routing algorithm would determine, for

example, the path along which packets flow from H1 to H2.


The terms forwarding and routing are often used interchangeably by authors discussing the network layer. Forwarding refers to the router-local action of transferring a packet from an input link interface to the appropriate output link interface. Routing refers to the network-wide process that determines the end-to-end paths that packets take from source to destination.


Every router has a forwarding table. A router forwards a packet by examining the value of a field in the arriving packet’s header, and then using this header value to index into the router’s forwarding table. The value stored in the forwarding table entry for that header indicates the router’s outgoing link interface to which that packet is to be forwarded. Depending on the network-layer protocol, the header value could be the destination address of the packet or an indication of the connection to which the packet belongs. The below figure provides an example. 



fig


Figure. Routing algorithms determine values in forwarding tables



In the above figure, a packet with a header field value of 0111 arrives to a router. The router indexes into its forwarding table and determines that the output link interface for this packet is interface 2. The router then internally forwards the packet to interface 2. 


You might now be wondering how the forwarding tables in the routers are configured. This is a crucial issue, one that exposes the important interplay between routing and forwarding. As shown in the above figure, the routing algorithm determines the values that are inserted into the routers’ forwarding tables. 


The routing algorithm may be centralized (e.g., with an algorithm executing on a central site and downloading routing information to each of the routers) or decentralized (i.e., with a piece of the distributed routing algorithm running in each router). In either case, a router receives routing protocol messages, which are used to configure its forwarding table. 


The distinct and different purposes of the forwarding and routing functions can be further illustrated by considering the hypothetical (and unrealistic, but technically feasible) case of a network in which all forwarding tables are configured directly by human network operators physically present at the routers. 


In this case, no routing protocols would be required! Of course, the human operators would need to interact with each other to ensure that the forwarding tables were configured in such a way that packets reached their intended destinations. It’s also likely that human configuration would be more error-prone and much slower to respond to changes in the network topology than a routing protocol. We’re thus fortunate that all networks have both a forwarding and a routing function!


You're welcome to leave a message and exchange in the comment area!

In a network, there are a number of routes available from the source to the destination. The network layer specifies has some strategies which find out the best possible route. This process is referred to as routing. There are a number of routing protocols which are used in this process and they should be run to help the routers coordinate with each other and help in establishing communication throughout the network.
Forwarding is simply defined as the action applied by each router when a packet arrives at one of its interfaces. When a router receives a packet from one of its attached networks, it needs to forward the packet to another attached network (unicast routing) or to some attached networks(in case of multicast routing).
View more
  • x
  • convention:

  • x
  • convention:

Helpful post
View more
  • x
  • convention:

AL_93
AL_93 Created Oct 11, 2021 15:51:29 (0) (0)
Thank you for reading the post  
simchamnan
simchamnan Created Oct 22, 2021 07:13:35 (0) (0)
 
Quality post, thanks for sharing
View more
  • x
  • convention:

S_Noch
S_Noch Created Oct 11, 2021 11:09:21 (1) (0)
 
AL_93
AL_93 Created Oct 11, 2021 15:51:35 (1) (0)
Thank you for reading the post  
Caroline_Herrera
Caroline_Herrera Reply AL_93  Created Oct 31, 2021 06:07:37 (0) (0)
 
Thank you for the good post!
View more
  • x
  • convention:

AL_93
AL_93 Created Oct 11, 2021 15:51:43 (1) (0)
Thank you for reading the post  
Kevin_Thomas
Kevin_Thomas Reply AL_93  Created Oct 29, 2021 18:01:05 (1) (0)
 
adrian_alucard
adrian_alucard Reply Kevin_Thomas  Created Oct 30, 2021 15:59:21 (0) (0)
 
Good post. Thank you!
View more
  • x
  • convention:

S_Noch
S_Noch Created Oct 11, 2021 11:09:29 (1) (0)
 
AL_93
AL_93 Created Oct 11, 2021 15:51:49 (1) (0)
Thank you for reading the post  
Vesper_EvenStar
Vesper_EvenStar Reply AL_93  Created Oct 30, 2021 15:11:03 (0) (0)
 
Nice share, thank you for sharing!
View more
  • x
  • convention:

AL_93
AL_93 Created Oct 11, 2021 15:51:57 (0) (0)
Thank you for reading the post  
Very good, thanks for sharing
View more
  • x
  • convention:

AL_93
AL_93 Created Oct 11, 2021 15:52:04 (1) (0)
Thank you for reading the post  
user_4326135
user_4326135 Reply AL_93  Created Oct 30, 2021 07:53:22 (0) (0)
 
Thanks for sharing
View more
  • x
  • convention:

AL_93
AL_93 Created Oct 11, 2021 15:52:10 (0) (0)
Thank you for reading the post  
Nice
View more
  • x
  • convention:

AL_93
AL_93 Created Oct 11, 2021 15:52:16 (0) (0)
Thank you for reading the post  
good
View more
  • x
  • convention:

AL_93
AL_93 Created Oct 11, 2021 15:52:21 (0) (0)
Thank you for reading the post  
azkasaqib
azkasaqib Created Oct 16, 2021 17:31:44 (1) (0)
 
AL_93
AL_93 Reply azkasaqib  Created Oct 22, 2021 16:53:45 (0) (0)
 

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.