answersLogoWhite

0


Best Answer

The looping problem solved by switches by using an algorithm named Spanning Tree algorithm and Routers by using Dijkstra's shortest path algorithm.

Switches handle the looping problem through making spanning tree.

Switches:

Switching handle the looping problem by building Spanning Tree.

Spanning Tree Algorithm:

There are possibilities in the extended LANs having loop like structure. Bridges and switch must be able to correctly handle loops. This addressed by having the bridge or switch run a distributed Spanning Tree Algorithm.

If you think of the extended LAN as being represented by a graph that has loops (cycles) then a spanning tree is a subgraph of this graph that covers (Spans) all the vertices, but contains no cycles. That is a spanning tree keeps all the vertices of the original graph, but throws out some of the edges.

Consider the following extended LAN with many bridges or switch forms loops.


If we remove some ports for the bridge or switch from the topology, the extended LAN reduced to a cyclic tree. The main idea of the spanning tree is for the bridge or switch to select the ports over which they will forward frame. The algorithm selects ports as follows.

  • The spanning tree algorithm first selects the bridge with smallest id as the root of the spanning tree as described below.
  • The root bridge or switch always forwards frames out over all of its ports.
  • Each bridge computes the shortest path to the root and records the corresponding port. This port is also selected as the bridge or switch preferred path to the root.
  • All the bridge or switch connected to a given LAN elect a single designated bridge that will be responsible for forwarding frames towards the root bridge.

Routers:

Routers rely on routing protocols to build shortest path to avoid routing loops. (Ex) Link State Routing protocol and Distance Vector Routing protocol.

Link State Routing protocol build routing table based on Dijkstra's algorithm and Distance Vector Routing protocol build routing table based on Bellman Ford algorithm.

  • The local node may be the start (root) of the tree.
  • The local node has cost 0 and makes itself as permanent node.
  • From the list of tentative nodes -
  • Find a node with lower cumulative cost and make it as permanent.
  • Select the direction with the shortest cumulative cost.
  • To examine each neighbor node of it that was the last permanent node.
  • Repeat the steps until every node becomes permanent.
User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How is looping problem solve by switches and by routers?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

The goal of applied science is?

It is to use science for a practical job or to solve a problem.


What is the difference between solving a problem and analyzing a problem?

When you analyze a problem you look it over which is what analyzing means. You look over the problem and then you solve it. When you solve a problem you solve it and you use certain steps and solve it but of course everyone has there ways to solve a problem but some people have ways to solve it by just analysing it. That is the difference.


What problem did the the trampoline solve?

It didn't solve any problem it was invented as a sport not as a way to solve anything...


Can sasol process solve south Africa's petrol problem?

no it can not solve the problem


How can geography solve the problem of street urchins?

how can geography solve the problem of street urchins?


How do you solve the problem of physical memory dump?

How do you solve the problem of physical memory dump?


What is george polya's problem solving strategies?

understand the problem decide how your going to solve the problem solve the problem look back and check


How do you solve v4 27?

How to solve this problem v427


What does solve a simpler problem to solve mean?

Analyzing it!


Can a problem be solve with the scientific method?

yes it can be solve


What is the complex problem that you helped solve?

A complex problem I helped solve was when my friend was arguing with a girl .


Why was the microscope created or what problem did it solve?

Tje microscope solve your problem by looking into small things