STP: Root port vs. designated port (2024)

161489

Views

173

Helpful

23

Replies

STP: Root port vs. designated port

Go to solution

STP: Root port vs. designated port (1)

STP: Root port vs. designated port (2)Kevin MeltonSTP: Root port vs. designated port (3)

Level 2

Options

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

‎12-07-201009:21 AM - edited ‎03-06-201902:23 PM

Forum

I am having difficulty understanding the difference between the root port and a designated port. Please read the following definitions from Todd Lammle's CCNA study guide...

Root port - The root port is always the link connected to the root bridge, or the shortest path to the root bridge. If more than one link connects to the root bridge, then a port cost is determined by checking the bandwidth of each link. The lowest cost port becomes the root port. if multiple links have the same cost, the bridge withe the lower advertising Bridge ID is used. Since multiple links can be from the same device, the lowest port number will be used.

Designated Port - a designated port is one that has been determined as having the best (lowest)cost. A designated port will be a forwarding port.

I am having some difficulty understanding this, and wanted the perspective of someone who may be able to expain the difference between the two port types. To me it sounds like the Root Port and the Designated Port are the same...

Why are they not the same, and what are the differences between each?

Thanks

Kevin

Solved!Go to Solution.

13 people had this problem

I have this problem too

Labels:

  • Labels:
  • Other Switching

11Helpful

  • All forum topics
  • Previous Topic
  • Next Topic

2 Accepted Solutions


Accepted Solutions

Go to solution

STP: Root port vs. designated port (4)

STP: Root port vs. designated port (5)STP: Root port vs. designated port (6)Jon Marshall

Hall of Fame

Options

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

‎12-07-201009:39 AM

Kevin

Have a look at the attached schematic.

STP: Root port vs. designated port (7)

sw1 is the root bridge.

The root port (RP) is the port that leads to the root bridge so the root bridge does not have any root ports. All the ports on a root bridge forward and they are all designated ports (DP).

As you can see there is loop in this the above network so one of the links must be blocked (BLK).

When the switches boot up they exchange BPDUs and the first thing they do is elect a root bridge. SW1 is elected in this case.

Next each switch has to work out the least cost path to the root bridge. I haven't included costs for each link in this diagram but from the above

SW3 sees it's direction connection to SW1 as the least cost so it's port on that link becomes the RP.

SW2 sees it's direction connection to SW1 as the least cost so it's port on that link becomes the RP.

Once the switches have agreed on the root bridge and their RPs they now need to find their designated ports. The designated ports are the ports responsible for forwarding traffic onto a network segment. Think of it like this -

RPs lead toward the root bridge

DPs lead away from the root bridge

because the root bridge has no blocking ports all it's ports are DP's.

So the only other segment not accounted for in the above diagram is SW2 -> SW3. One of the ports that connect that segment must forward traffic onto that segment otherwise that segment would never receive any traffic. But they can't both forward as then there would be a loop ie. a packet sent from SW1 would go to SW3 -> SW2 and back to SW1 etc.

So SW2 and SW3 compare costs on that segment in the BPDUs sent between each other and one of them has a better cost, in this case SW3. It puts it's port into forwarding and this becomes a DP. To break the loop SW2 must now put it's port into blocking mode.

Hope that's helped. All of the above is done on costs but i didn't include them so as not to confuse the basic concepts.

Jon

View solution in original post

106Helpful

Go to solution

STP: Root port vs. designated port (8)

STP: Root port vs. designated port (9)Grayson WellsSTP: Root port vs. designated port (10)

Level 1

In response to Kevin Melton

Options

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

‎12-07-201011:09 AM

Access ports are probably going to be in the forwarding state, and in reality you should probably have the spanning-tree portfast command on those ports so that they do not cycle through the stages of STP, better for them to go straight to forwarding. The designated port should never be an access port. It is a port that is basically a downlink to another switch.

If you are looking at the switch that is acting as the root bridge for the VLAN then it will show all the ports as designated ports because they are the downlinks to the rest of the network. If you are in a switch further down the spanning tree it will have a port called the root port, which is the pathway to the root bridge. So if you have a port in the root port state, it is understood that it is connected to a port that is in a designated port state. This is the case because the root port is the uplink towards the root, and the designated port is the downlink to a lower portion of the spanning tree. Hope that clears things up.

View solution in original post

5Helpful

23 Replies 23

Go to solution

STP: Root port vs. designated port (11)

STP: Root port vs. designated port (12)lgijsselSTP: Root port vs. designated port (13)

Level 9

Options

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

‎12-07-201009:34 AM

Think of it like this:

A bridge device has two (or more) ports.

The one that is connected on the side where the STP root resides is called 'root port'.

A port not facing the root but forwarding traffic (while lowest cost) from another segment is called 'designated port'.

Another difference is a designated port is transmitting bpdu's on the segment while a root port only listens to bpdu's from the root.

regards,

Leo

20Helpful

Go to solution

STP: Root port vs. designated port (14)

STP: Root port vs. designated port (15)Kevin MeltonSTP: Root port vs. designated port (16)

Level 2

In response to lgijssel

Options

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

‎12-07-201010:06 AM

Leo

Thanks for the response.

Kevin

0Helpful

Go to solution

STP: Root port vs. designated port (17)

STP: Root port vs. designated port (18)STP: Root port vs. designated port (19)Jon Marshall

Hall of Fame

In response to lgijssel

Options

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

‎12-07-201011:31 AM

Leo

You've changed colour - congrats on new star

Jon

0Helpful

Go to solution

STP: Root port vs. designated port (20)

STP: Root port vs. designated port (21)STP: Root port vs. designated port (22)Jon Marshall

Hall of Fame

Options

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

‎12-07-201009:39 AM

Kevin

Have a look at the attached schematic.

STP: Root port vs. designated port (23)

sw1 is the root bridge.

The root port (RP) is the port that leads to the root bridge so the root bridge does not have any root ports. All the ports on a root bridge forward and they are all designated ports (DP).

As you can see there is loop in this the above network so one of the links must be blocked (BLK).

When the switches boot up they exchange BPDUs and the first thing they do is elect a root bridge. SW1 is elected in this case.

Next each switch has to work out the least cost path to the root bridge. I haven't included costs for each link in this diagram but from the above

SW3 sees it's direction connection to SW1 as the least cost so it's port on that link becomes the RP.

SW2 sees it's direction connection to SW1 as the least cost so it's port on that link becomes the RP.

Once the switches have agreed on the root bridge and their RPs they now need to find their designated ports. The designated ports are the ports responsible for forwarding traffic onto a network segment. Think of it like this -

RPs lead toward the root bridge

DPs lead away from the root bridge

because the root bridge has no blocking ports all it's ports are DP's.

So the only other segment not accounted for in the above diagram is SW2 -> SW3. One of the ports that connect that segment must forward traffic onto that segment otherwise that segment would never receive any traffic. But they can't both forward as then there would be a loop ie. a packet sent from SW1 would go to SW3 -> SW2 and back to SW1 etc.

So SW2 and SW3 compare costs on that segment in the BPDUs sent between each other and one of them has a better cost, in this case SW3. It puts it's port into forwarding and this becomes a DP. To break the loop SW2 must now put it's port into blocking mode.

Hope that's helped. All of the above is done on costs but i didn't include them so as not to confuse the basic concepts.

Jon

106Helpful

Go to solution

STP: Root port vs. designated port (24)

STP: Root port vs. designated port (25)hijacker1986STP: Root port vs. designated port (26)

Level 1

In response to Jon Marshall

Options

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

‎12-18-201007:55 PM

Hello Forum,

I have an inquiry regarding port roles on this topology, mainly designated routers...I know Switch C is the root, therefore SWC fa0/1 & fa0/2 are designated, SWA fa0/1, SWD gi0/2 and SWB path SWD-SWC are root leaving SWA-SWB link dead, but I am not sure what port gets to be designated, I would say SWA's port (fa0/2) cause its cost is lower than SWB but dont know. Can you please give me a hand?

STP: Root port vs. designated port (27)

Regards

JOSE

0Helpful

Go to solution

STP: Root port vs. designated port (28)

STP: Root port vs. designated port (29)lamavSTP: Root port vs. designated port (30)

Level 8

In response to hijacker1986

Options

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

‎12-18-201009:15 PM

Watch this excellent video and all your questions will be answered.

77267-BCMSN05 - STP Part I.wmv.zip

25Helpful

Go to solution

STP: Root port vs. designated port (31)

STP: Root port vs. designated port (32)hijacker1986STP: Root port vs. designated port (33)

Level 1

In response to lamav

Options

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

‎12-19-201005:49 AM

Lamav,

I appreciate the video it was really good indeed, I guess my question even though the path of SWB to the root is better when it comes to electing the designated port and blocking port the lower BID is selected as designated; I thought that the costs were used to elect the designated port as well, does that make sense?

Thanks,

Jose

0Helpful

Go to solution

STP: Root port vs. designated port (34)

STP: Root port vs. designated port (35)Charan.harrySTP: Root port vs. designated port (36)

Level 1

In response to lamav

Options

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

‎02-04-201611:32 PM

hello lamav...your video is amazing man...could you tell me the source of the video...bcoz i am giving ccnasoon...it'll b helpful for me....plzzz bro

anyway thank you for this video...keep up the goodwork

0Helpful

Go to solution

STP: Root port vs. designated port (37)

STP: Root port vs. designated port (38)venkatd82STP: Root port vs. designated port (39)

Level 1

In response to lamav

Options

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

‎01-23-201807:13 PM

very nice video and informative..now i am clear abt designated port..thanks lamav..hope you will share in future such gud stuff for increasing others knowledge.

0Helpful

Go to solution

STP: Root port vs. designated port (40)

STP: Root port vs. designated port (41)dustin.dummerSTP: Root port vs. designated port (42)

Level 1

In response to lamav

Options

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

‎02-08-202109:53 AM

Do you have a link to the STP Part 2 video?

0Helpful

Go to solution

STP: Root port vs. designated port (43)

STP: Root port vs. designated port (44)mc-nguyenSTP: Root port vs. designated port (45)

Level 1

In response to hijacker1986

Options

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

‎06-20-201508:06 AM

Hi,

We must assume the cost of the port.Say Fa cost= 100, Gi cost = 4

We assume that the ID is by default for each switch, so the rankingis based on the MAC address. The ranking is therefore from the eldest (the older the better is) : SWC(1), SWA(2), SWD(3), SWB(4). So SWCis the root.

Root port determination: to calculate the cost from a SW to the root SW we sum all the outpout cost on the path.

If we do the maths it comes out : SWA Fa01 is RP (cost 104 to reach root), SWB Gi0/1 is RP (cost 8 to root), SWD Gi0/2 is RP.

For the DP ; we look at each segment, the port which has the lowest cost to reach the root will be the DP.

Segment swA-swB , A tells I've cost 100 toreach root C, B tells I've 8(4 for SWB Gi0/1 + 4 for SWD Gi0/2)to reach root C , thus SWB Gi0/2 is DP

Segment SWB-SWD : the same rationale gives SWD Gi0/1 as DP.

And as a result, interface SWA FA0/2 is in blocking state (it is neither RP nor DP). And while SWB Gi0/2 beinga DP isused to forward broadcast frame, the frame is stoppedby SWA on Fa0/2 interface, preventing a frame storm. Only BPDU from SWB to SWA is accepted by SWA.

0Helpful

Go to solution

STP: Root port vs. designated port (46)

STP: Root port vs. designated port (47)Kevin MeltonSTP: Root port vs. designated port (48)

Level 2

Options

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

‎12-07-201010:05 AM

Jon

Is it correct then to assume that Access ports cannot be Designated Ports?...

Thanks for your detailed response as it helps me undertand this better.

Kevin

0Helpful

Go to solution

STP: Root port vs. designated port (49)

STP: Root port vs. designated port (50)Grayson WellsSTP: Root port vs. designated port (51)

Level 1

In response to Kevin Melton

Options

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

‎12-07-201011:09 AM

Access ports are probably going to be in the forwarding state, and in reality you should probably have the spanning-tree portfast command on those ports so that they do not cycle through the stages of STP, better for them to go straight to forwarding. The designated port should never be an access port. It is a port that is basically a downlink to another switch.

If you are looking at the switch that is acting as the root bridge for the VLAN then it will show all the ports as designated ports because they are the downlinks to the rest of the network. If you are in a switch further down the spanning tree it will have a port called the root port, which is the pathway to the root bridge. So if you have a port in the root port state, it is understood that it is connected to a port that is in a designated port state. This is the case because the root port is the uplink towards the root, and the designated port is the downlink to a lower portion of the spanning tree. Hope that clears things up.

5Helpful

Go to solution

STP: Root port vs. designated port (52)

STP: Root port vs. designated port (53)echastoESLSTP: Root port vs. designated port (54)

Level 1

In response to Grayson Wells

Options

  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

‎12-15-201404:35 AM

Quoted from Robert's answer: "The designated port should never be an access port."

Turning this concept around, and asking the question "Are all access ports designated ports?"I have been pondering this idea (during some deep STP study) and I think that all "access ports" (i.e. ports connected only to a host device) in an up/up stateare designated ports, since they are not root ports and are in the forwarding state.

We tend to think of designated ports having to be on an inter-switch link, but links to hosts are LAN segments as well, and hence part of the spanning tree;it's just that they have only one port as a switch port. When a port determines whether or not it is a designated port, it forwards (or originates if the root bridge) a BPDU and waits to see if it receives a superior BPDU; if it does, then it 'knows':

  1. that there is another path to the root bridge on the segment and there is the potential for a loop and
  2. itis not the lowest cost to the root bridge on the segment, and goes into blocking state.

Ifit receives no BPDUs, as is the case when attached to a host, it assumes, correctly, that it is the lowest cost path to the root bridge ON THAT SEGMENT, is therefore the designated port for that segment,and goes into forwarding state.

This is why BPDUGuard is a useful "access port" feature, because you would never expect a BPDU from a host device and if you received one, then someone has probably plugged in a rogue switch with the potential to completely mess with your STP topology.

1Helpful

STP: Root port vs. designated port (55)

  • «Previous
    • 1
    • 2
  • Next»

Learn, share, save

Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.

New here? Get started with these tips. How to use Community New member guide

Log in to Community

Quick Links

Knowledge Articles Nexus Devices Developer Forum

Customers Also Viewed These Support Documents

STP: Root port vs. designated port (56)

STP: Root port vs. designated port (2024)
Top Articles
Full Disk Encryption From Scratch
Encrypt/Decrypt Files in Linux using Ccrypt - GeeksforGeeks
Zabor Funeral Home Inc
Bashas Elearning
Missed Connections Inland Empire
Craigslist Cars And Trucks For Sale By Owner Indianapolis
T Mobile Rival Crossword Clue
How to know if a financial advisor is good?
Die Windows GDI+ (Teil 1)
Soap2Day Autoplay
Magic Mike's Last Dance Showtimes Near Marcus Cedar Creek Cinema
Eka Vore Portal
Games Like Mythic Manor
Echat Fr Review Pc Retailer In Qatar Prestige Pc Providers – Alpha Marine Group
2 Corinthians 6 Nlt
Lancasterfire Live Incidents
How do I get into solitude sewers Restoring Order? - Gamers Wiki
Dirt Removal in Burnet, TX ~ Instant Upfront Pricing
Pay Boot Barn Credit Card
Race Karts For Sale Near Me
Metro Pcs.near Me
Epguides Strange New Worlds
Ein Blutbad wie kein anderes: Evil Dead Rise ist der Horrorfilm des Jahres
Bible Gateway passage: Revelation 3 - New Living Translation
R. Kelly Net Worth 2024: The King Of R&B's Rise And Fall
Galaxy Fold 4 im Test: Kauftipp trotz Nachfolger?
Tokyo Spa Memphis Reviews
Ou Football Brainiacs
Jackass Golf Cart Gif
Mosley Lane Candles
Khatrimmaza
2012 Street Glide Blue Book Value
Cross-Border Share Swaps Made Easier Through Amendments to India’s Foreign Exchange Regulations - Transatlantic Law International
Jefferson Parish Dump Wall Blvd
Hannibal Mo Craigslist Pets
Ksu Sturgis Library
159R Bus Schedule Pdf
Sam's Club Gas Prices Deptford Nj
Craigslist Freeport Illinois
Clima De 10 Días Para 60120
Birmingham City Schools Clever Login
Pekin Soccer Tournament
Centimeters to Feet conversion: cm to ft calculator
Gas Buddy Il
Theatervoorstellingen in Nieuwegein, het complete aanbod.
300+ Unique Hair Salon Names 2024
Germany’s intensely private and immensely wealthy Reimann family
Publix Store 840
Superecchll
Hkx File Compatibility Check Skyrim/Sse
Koniec veľkorysých plánov. Prestížna LEAF Academy mení adresu, masívny kampus nepostaví
Latest Posts
Article information

Author: Velia Krajcik

Last Updated:

Views: 6415

Rating: 4.3 / 5 (54 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Velia Krajcik

Birthday: 1996-07-27

Address: 520 Balistreri Mount, South Armand, OR 60528

Phone: +466880739437

Job: Future Retail Associate

Hobby: Polo, Scouting, Worldbuilding, Cosplaying, Photography, Rowing, Nordic skating

Introduction: My name is Velia Krajcik, I am a handsome, clean, lucky, gleaming, magnificent, proud, glorious person who loves writing and wants to share my knowledge and understanding with you.