In this lesson, we room going to check out the packet shipment process, indigenous the routing perspective. We will see how one of the main functions of routing is to recognize the optimal path across a routed network because that IP packets. We will certainly dive deep into certain components prefer routing tables and describe the various methods come populate routing tables, for example, static and dynamic routing. Because that dynamic routing, will list the attributes of routing protocols and classify them into distance, vector, and also link state.

You are watching: What are two functions of a router?

Routers

We recognize that routers implement layer 3 or network great functions. Their key job is to front packets based ~ above a routing table. Once doing so, castle also provide traffic segmentation, multiple transfer domains, and also define network layer addressing subnets and networks. Those networks are defined by router network adapters or ports to which IP addresses room assigned. Those IP addresses are typically the default gateway come PCs and also servers or various other networking devices.

Routers likewise connect to service providers and act as gateways to various other networks, typically found in ~ the perimeter or leaf of the network. Few of those network adapters will be various other than Ethernet. Castle will have connectivity come serial interfaces, DSL connections, and also other forms of WAN. The main components provided here are similar to those of any computing and network device: CPU, motherboard, RAM, ROM. In fact, Cisco routers have actually different types of memory. They also have flash, where the image of the operating device resides. But the main suggest behind this is that those computer resources are currently so powerful that they enable routers to begin behaving like various other network elements; they deserve to incorporate firewalling functions and even voice call routing capabilities because that IP telephony environments, for this reason routers today room the same an excellent old layer 3 devices, yet they are additionally the jack of all trades, which permits you to combine multiple attributes within your network elements: several of those via software program upgrades, and some of them via network modules in modular construction routers.

*

Router Functions

The basic routing role can be break-up into two areas; one is to develop a map that the network and for that routers typically use either static routing or dynamic routing protocols. Through the help of dynamic routing protocols, routers will let other network gadgets know around not only the topology the the network but also about network changes. Static routing will certainly be the static and will no adapt come network changes. Both models attain the task of building the map the the network in the kind of the routing table.

The command and output presented here screen the routing table top top a Cisco router. With display IP route, an IOS machine like this one might show the different destinations, the expense to obtain there, what is recognized as the bureaucratic distance to specify priorities for various routing protocols, and also the next-hop to get to the destination. Notification how the routing protocol that learned that specific entry or destination is shown there in the an initial column. This is EIGRP, this is RIP, and also this is OSPF. Through this information, routers will have the ability to determine whereby to forward packets. Lock will execute so by sending the packet come the following router in the route according to the information in the routing table. Notice then that routing is based on destination addresses.

Path Determination

During the process of course determination, the routers will consider multiple alternatives to get to the exact same place; those alternatives result from the redundancy constructed into most network designs. You want multiple paths, so that if one goes down, other choices will become available. In identify the finest path, routers will consider several things. Among them is the resource of the information, and so you could have lot of dynamic routing protocols or also static routing populating the routing table and also telling the router what the alternatives are.

The second piece of info is the price of taking each path, and knowing that the path is comprised of multiple web links or hops that are identified by other routers. Then us could include the concepts of the cost in the context of the total path, however that price is nothing an ext than the sum of all the costs to reach every hop in the path.

Well, the 2 decisions space ruled by different pieces the information, because that example, in stimulate to define a tie breaker in between sources the information, the routers usage the bureaucratic distance, so if a routing protocol favor OSPF is telling the router info on a location and also RIP is informing that router information on the exact same destination, then the bureaucratic distance will define who wins. When the resource is selected, climate the price is what matters; in other words, if OSPF is giving me the details on those two paths, then the price of the route will specify which one i take. This is comparable to having actually two maps to journey from one city to the other. You very first select i m sorry map you space going to follow and also then if the map is providing you an ext than one option, then you will choose the option according to probably the amount of time it takes or the lot of mile you have to drive because that each option.

Routing Tables

So the routing table has the network layer intelligence that speak the router how to forward packets to far destinations. Initially, the routing table is made up of networks that room directly linked to the particular router. They space obviously presented as directly connected networks, after the the method to learn around remote destinations is by either populating the routing table with static routes in i beg your pardon an administrator will tell the router just how to obtain to the destination or through populating the routing table via routing table advertisements comes from other routers.

So routers room gossipy and they will certainly tell every other information that permits them come know about all the gossip in the network. In both cases, static and dynamic routing notification how routers usage the reserved subnet addresses or network addresses that contain all 0s in the host portion of the IP address.

In this case, we room talking around a classless subnetted class A address. Network 10 separation into subnets similar to a course C. However, in all situations here, the host portion of the address, the fourth byte is all 0s and that represents that subnet or network itself. In various other words, these are destination networks or subnets. In the situation of far destinations, the routing table entries show what the next hop is in order come reach that destination. In this case, in order to reach 10.1.3.0, ours next-hop is router 2 in ~ 10.1.2.2.

*

These space categories of routing table entries that might be inhabited either dynamically or statically. Few of them are born with the router. As soon as the router boots up, it will determine its directly connected energetic networks and also interfaces and define them as reachable destinations, only because of the truth that the router is directly attached or associated to it. Now that is pretty smart, however even smarter is the reality that the routers will communicate with each other, exchange routing info via dynamic routing protocols choose OSPF or EIGRP, and also then learn not only about those destinations, yet also adjust to transforms on those destinations.

Routing protocols will be able to identify topology changes and also tell each other about them. Shortly enough, entries will appear and disappear native the routing table follow to availability; again, one administrator might come in and also manually insert revolution entries. This is sometimes not recommended since they will be static and they will not adjust to network changes; in other words, if the entrance or the destination goes down, the entrance will remain there and the router will still front packets to a location that is not available. Possibly a special instance of a static path is the default route. Although they can also be learned dynamically, static defaults are supplied when no explicit route to a location is known and also so this is the entry that identifies all unknown destinations. The router will say, "If I perform not know about a details destination, I will certainly forward a packet to someone that does, typically one more router."

Routing Metrics

Optimal path an option depends on what is recognized as the price to with a destination across a particular path. Again, the cost of a path is consisted of of incremental prices for every hop along the path. The price is additionally known together metric, and different routing protocols will take into consideration different criteria in order to define the metric. Larger technologies and also protocols consider the variety of routers follow me the path in bespeak to reach a destination; that is what they call the hop count. Hop count is periodically not an efficient way to recognize cost, since you could have various bandwidths linked with each hop or each link.

*

In this instance the two-hop path is better, due to the fact that it has an ext bandwidth available. Various other routing protocols start considering bandwidth together a measure of cost, and also even much more parameters in the criteria, for example, EIGRP considers bandwidth delay, reliability, load, and maximum infection unit. In that case, a route with sufficient bandwidth, but one that is completely congested, would not be selected and also perhaps another path through less easily accessible bandwidth would be selected since it is less congested and an ext reliable.

Perhaps among the points and highlights the this lesson is the fact that routing protocol selection, if you are doing dynamic routing, is an essential in determining the price or metric and, therefore, just how efficient and optimal the path selection will be, but likewise the convergence time, i beg your pardon is identified by the moment it takes because that routing protocol to detect a topology change and readjust by selecting an alternate path if the main path is down. There are various categories that routing protocols if you are using dynamic routing that specify their cost and metric, but likewise their habits under those circumstances.

Distance Vector Routing Protocols

Perhaps one of the points and also highlights that this great is the fact that routing protocol selection, if you room doing dynamic routing, is vital in identify the cost or metric and, therefore, how efficient and also optimal the path an option will be, but likewise the convergence time, i m sorry is defined by the time it takes for routing protocol come detect a topology change and change by picking an alternative path if the key path is down. There are various categories the routing protocols if you are using dynamic routing that specify their cost and metric, but additionally their actions under those circumstances.

Using the street vector approach, which is among the categories, routers execute not have to really understand the totality path towards the destination. Lock only have to know the direction or vector in which to send a packet. In the sense, that will just keep info in the routing tables related to what the next-hop need to be in order to with a particular destination.

Distance vector protocols endure from numerous disadvantages; among them is the they regular advertise the routing tables. Some of them use broadcasts to advertise the whole routing table. This creates too lot overhead in the network and also it might be unnecessary if the network does not really change, so it is really comparable to calling everybody come tell them about gossip, by call them commonly to tell them the exact same gossip over and over again. Also if the rumor has actually not changed, it is also similar to informing the whole story over and also over again indigenous the start, also though nothing has changed or even though simply a piece of the story has actually changed. RIP, or Routing details Protocol, is an example of a street vector protocol. In the case of RIP, it supplies a hop count as the measure up of cost.

See more: What Legendaries Can You Catch Rayquaza In Ruby And Sapphire

Link-State Routing Protocols

Link-State protocols are an ext efficient and also effective in developing network topologies, sharing them, and selecting the finest path as contrasted to street vector protocols. Over there are number of differences in between the two categories. Because that example, link state protocols will not broadcast the info per router, that will usage multicast wherein each router advertises via that multicast the connect it to know to the neighbors. Secondly, link-state protocols execute not advertising periodically. After an initial overwhelming of all the information, yet will just advertise alters to the topology. In various other words, if the attach goes down then that little change will certainly be advertised via multicast. Third, router not just know about the following hop towards a destination, they know around the totality topological map of the network. Each router after ~ the initial flood will construct that map that the network, which consists of all the routers and also all the links. With that information, each router is capable of browsing those tables via making use of the shortest path an initial algorithm, and also select the best path toward each destination. This would be mounted in a routing table. So, you execute not require a chain reaction of occasions for every router to do a topological alters and adjust routing decisions. As soon as there is a change, for instance this connect going down, that will impact only a little branch that the tree and only that change will be advertised to the network. This is what they call incremental updates. All of these changes and also differences do link-state protocols an ext effective and efficient in taking care of network changes.