What is the difference between a root port and a designated port?

A port acts as an interface between the computer and the external devices. For example, we may attach hard drives and printers to the computer using ports. We'll discuss the following types of ports in this answer:

  • Root port

  • Designated port

Root port

The root port (switch) on the bridge is the port with the shortest STPSpanning Tree Protocol prevents loops in a network by avoiding redundant connections between switches. cost from the switch to the root bridge. It connects directly to the single root bridge and has the shortest path to the root bridge.

When many connections connect to the root bridge, a port cost is determined by analyzing the bandwidth of each link.

Designated port

The designated port has the lowest spanning-tree It is a sub-graph of an undirected connected graph, which includes all the vertices of the graph with a minimum possible number of edges.path cost on a particular LANLocal area network is a computer interconnects computers within a specific area.. The route's price depends on the speed of the bridge port interface. Designated ports are picked on a per-segment basis by computing the total cost by the STP and the cost of each segment port.

Note: A bridge can have many designated ports.

The ports on a root bridge are all designated ports, and there is no root port on a root bridge as shown in the illustration below:

Root and designated ports in a computer network

Differences

Some key differences between the two ports are as follows:

Root Port

Designated Port

It is a single port on a switch alongside the root switch.

The designated port is present on every switch.

There are no root ports on a root switch.

All existing ports on a root switch are designated ports.

If one end of the link is a root port the other has to be a designated port.

If one end is a designated port the other side can have a designated or non designated port.

It has the lowest costing path from a non-root brigde to a root bridge.

It has the lowerst STP cost in a LAN to the root bridge.

Free Resources

Copyright ©2025 Educative, Inc. All rights reserved