Got it

Network Layer - Forwarding and Routing

Latest reply: Mar 18, 2022 14:10:09 1623 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!

Good
View more
  • x
  • convention:

AL_93
AL_93 Created Oct 11, 2021 15:53:41 (0) (0)
Thank you for reading the post  
Sara_Obaid
Sara_Obaid Reply AL_93  Created Oct 29, 2021 16:48:27 (0) (0)
 
Good post
View more
  • x
  • convention:

AL_93
AL_93 Created Oct 11, 2021 15:53:47 (0) (0)
Thank you for reading the post  
Good one
View more
  • x
  • convention:

AL_93
AL_93 Created Oct 14, 2021 11:14:15 (0) (0)
Thank you for reading the post  
Good share
View more
  • x
  • convention:

AL_93
AL_93 Created Oct 14, 2021 11:14:21 (0) (0)
Thank you for reading the post  
Great post, keep up the good work!
View more
  • x
  • convention:

AL_93
AL_93 Created Oct 14, 2021 11:14:27 (0) (0)
Thank you for reading the post  
Good post. Thank you!
View more
  • x
  • convention:

AL_93
AL_93 Created Oct 14, 2021 11:14:33 (0) (0)
Thank you for reading the post  
Excellent, thank you for sharing!
View more
  • x
  • convention:

AL_93
AL_93 Created Oct 19, 2021 04:47:42 (0) (0)
Thank you for reading the post  
Thanks for sharing
View more
  • x
  • convention:

AL_93
AL_93 Created Oct 19, 2021 04:47:50 (0) (0)
Thank you for reading the post  
Good share!
View more
  • x
  • convention:

AL_93
AL_93 Created Oct 19, 2021 04:47:29 (0) (0)
Thank you for reading the post  
Very interesting and informative post
View more
  • x
  • convention:

AL_93
AL_93 Created Oct 19, 2021 04:47:23 (0) (0)
Thank you for reading the post  

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.