According to the STP protocol, a certain field in the BPDU identifies the root switch. That is, if the BPDU sent by a switch contains this field, this switch is considered as the root switch.
What is this field?
Root Identifier
Root Path Cost
Bridge Identifier
Port Identifier