Root STP - 1 hop vs 2 hops problem

    Do not forget about Root Path Cost - step 2 in STP process;

    This might a tricky example;

     

    Example shows that

    Sw2 is one hop away from ROOT but Cost Path to the ROOT is lower via Sw 1 which is 2 hops away, So  Sw 2 picks Root port that is not directly connected to Root Sw.