show voice port - Tecnológico de Costa Rica

show voice port - Tecnológico de Costa Rica show voice port - Tecnológico de Costa Rica

bibliodigital.itcr.ac.cr
from bibliodigital.itcr.ac.cr More from this publisher
02.07.2013 Views

8 - 4 Aironet 340 Series Bridge How STP Protocol Works The STP protocol works by having the bridges transmit special configuration messages to each other. The messages contain enough information to allow the bridges to: n Elect a single bridge. A single bridge is selected, from all the bridges on all the LAN, to be the root bridge. Each bridge then calculates the distance of the shortest path to the root bridge. n Elect a designated bridge (for each LAN). A bridge from all the bridges residing on the LAN will be selected. This bridge will be closest to the root bridge. n Select its own port to be root port.This bridge has the best path to the root bridge. n Select ports are to be included in the spanning tree. Ports are included if they are a root port or the bridge itself has been selected as the designated bridge for the port’s LAN. Any ports not included in the spanning tree will be blocked and any data received from its LAN will be discarded. The bridge will not forward any traffic to this port. Receiving Configuration Messages Configuration messages contain four main fields. n The Bridge ID of the root bridge. This is called the root ID. A bridge’s ID consists of a 16 bit priority value appended with the infrastructure address of the bridge. The infrastructure address of the bridge is usually the address of one of the bridge’s ports.The priority value is assigned by the operator with a default value of 8000 hex. n The Bridge ID of the transmitting bridge. n The cost of the path from the transmitting bridge to the root bridge. n The port ID of the port on which the message was transmitted.The ID is made up of an 8 bit priority value appended with an 8 bit port number assigned to the port by the bridge. The priority value is assigned by the operator with a default value of 80 hex.

Using the Spanning-Tree Protocol 8 - 5 Each bridge starts by assuming it is the root and its root cost is 0. When a bridge receives a configuration message, it records the values only if the message received is better than the message it would transmit out the port. For example, message C1 is better than C2: n If the root ID in C1 has a lower numeric value than the value from C2. n If the root ID’s are equal and C1’s root cost is lower. n If the root ID’s and costs are equal and C1’s transmitting Bridge ID has a lower numeric value. n If the root ID, cost, and Bridge ID are equal and C1 was transmitted on a port with a lower port ID. This should only occur if two ports from the same bridge are connected to the same LAN. If a port receives a better message than the one it would transmit, the bridge stops transmitting configuration messages on that port. Only one port on each LAN will be transmitting the messages. The bridge that contains this port is called the designated bridge for that LAN and the port is called the designated port. Determining the Root Bridge and Root Cost Each bridge determines the root bridge’s ID by comparing its own ID with those from the best messages received on all of its ports. The root ID is then used in all transmitted configuration messages. If a bridge is the root, its root cost is 0. If a bridge is not a root, its cost is the minimum of the costs received in the messages from all its ports as well as the cost from the port on which the minimum cost message was received. This cost is then used in all transmitted configuration messages. The port on which the minimum cost message was received is called the root port.

Using the Spanning-Tree Protocol 8 - 5<br />

Each bridge starts by assuming it is the root and its root cost is 0. When<br />

a bridge receives a configuration message, it records the values only if<br />

the message received is better than the message it would transmit out the<br />

<strong>port</strong>.<br />

For example, message C1 is better than C2:<br />

n If the root ID in C1 has a lower numeric value than the value from<br />

C2.<br />

n If the root ID’s are equal and C1’s root cost is lower.<br />

n If the root ID’s and costs are equal and C1’s transmitting Bridge ID<br />

has a lower numeric value.<br />

n If the root ID, cost, and Bridge ID are equal and C1 was transmitted<br />

on a <strong>port</strong> with a lower <strong>port</strong> ID. This should only occur if two <strong>port</strong>s<br />

from the same bridge are connected to the same LAN.<br />

If a <strong>port</strong> receives a better message than the one it would transmit, the<br />

bridge stops transmitting configuration messages on that <strong>port</strong>. Only one<br />

<strong>port</strong> on each LAN will be transmitting the messages. The bridge that<br />

contains this <strong>port</strong> is called the <strong>de</strong>signated bridge for that LAN and the<br />

<strong>port</strong> is called the <strong>de</strong>signated <strong>port</strong>.<br />

Determining the Root Bridge and Root Cost<br />

Each bridge <strong>de</strong>termines the root bridge’s ID by comparing its own ID<br />

with those from the best messages received on all of its <strong>port</strong>s. The root<br />

ID is then used in all transmitted configuration messages.<br />

If a bridge is the root, its root cost is 0. If a bridge is not a root, its cost<br />

is the minimum of the costs received in the messages from all its <strong>port</strong>s<br />

as well as the cost from the <strong>port</strong> on which the minimum cost message<br />

was received. This cost is then used in all transmitted configuration<br />

messages.<br />

The <strong>port</strong> on which the minimum cost message was received is called the<br />

root <strong>port</strong>.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!