The port on the bridge that has the lowest path cost to the MSTI (Multiple Spanning Tree Instances) 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.