The STP port role adopted by a switch port if there is no other port with a lower cost to the root bridge is the designated port. This port has the lowest cost to the root bridge on a network segment and is responsible for forwarding traffic to and from that segment. If no other port has a lower cost to the root bridge, the port in question becomes the designated port.