I need a little bit of clarification regarding STP cost to the root port. I have 3 switches and they are all connected. A is connected to B, B is connected to C, and C is connected to A. A has been elected as the root bridge and C is the designated bridge because it has the lowest cost to the root bridge.
My question is for Switch B. Let's say I have a PC connected to Switch B and it's trying to send traffic to a device connected to Switch A. Which route would it take? I assume it would just send it directly to Switch A because it has a directly connected root port which would have the lowest cost being directly connected.
I guess my confusion is understanding the role of the designated bridge. Can someone clarify? I hope my mspaint image is sufficient.