The port on the bridge that has the lowest path cost to the MSTI regional root bridge is the MSTI root port.
If a bridge has two or more ports with the same path cost, the port with the best port identifier becomes the root port.