STP Designated Port Election Parameters

H12-821 By islever Editorial Last updated

RSTP Principles and Configuration

Short answer

AB During STP designated port election, switches compare the Root Bridge ID advertised by peers and the Root Path Cost to determine the forwarding port for a segment.

Question

Which of the following parameters are compared during designated port election on an STP network? (Choose all that apply.)
  1. Peer BID Correct Answer
  2. RPC Correct Answer
  3. Local BID and local PID
  4. Peer PID and local PID

Key Takeaways

The question tests the hierarchical tie-breaking order of STP: Root ID first, then Root Path Cost. Candidates often confuse internal port IDs with external path metrics.

Learn which parameters are compared during STP designated port election. Correct answers are Root Bridge ID (A) and Root Path Cost (B).

Common mistake: Selecting D (Peer PID vs Local PID) is a common trap. PIDs are primarily used to break ties for ports on the *same* switch or to identify the sender in BPDUs, but the core election metrics between distinct network entities are the Root ID and Path Cost.

Expert Analysis

The STP designated port (DP) election process occurs on a per-segment basis to determine which switch port forwards traffic for that LAN. The algorithm follows a strict priority sequence to break ties.

First, switches compare the Root Bridge ID (R-BID). The switch advertising the lowest R-BID wins this step. This corresponds to the "Peer BID" concept in Option A, as each switch evaluates the root information received from peers to identify the current root.

Second, if multiple ports belong to the same Root Bridge (or bridges with identical priorities), they compare the Root Path Cost (RPC). The path with the lowest cumulative cost to the root is preferred. Option B correctly identifies this as a key comparison metric.

Third, to distinguish between two ports on the same switch connecting to the same segment (a loop scenario), the switch compares its own Local Port ID (PID). However, it does not directly compare the Peer PID against the Local PID across different switches; rather, it uses the Sender Port ID contained in the BPDU to evaluate the path. Therefore, comparing "Peer PID and local PID" (Option D) as a cross-switch election mechanism is technically incorrect. Option C refers to the internal logic of a single switch choosing which of its own ports becomes the DP.

In summary, the primary external parameters compared during the election hierarchy are the Root ID (from peers) and the Root Path Cost. The local Port ID is used only when necessary to differentiate ports on the same device.

Exam Strategy

When facing STP election questions, memorize the four-step tie-breaker sequence: 1. Lowest Root Bridge ID, 2. Lowest Root Path Cost, 3. Lowest Sender Bridge ID, 4. Lowest Sender Port ID. Always check if the question asks about the first two steps (Root ID and Cost) versus the later steps involving Bridge/Port IDs. For multi-select questions asking 'what is compared', prioritize the global metrics (Root ID, Cost) before local identifiers unless the scenario specifies a loop-back connection.

Frequently Asked Questions

Does STP compare the Port IDs of two different switches directly?

No. Switches compare the Sender Port ID included in the BPDU, but the primary election decisions rely on the Root Bridge ID and Root Path Cost first. Port IDs are typically used to break ties when other parameters are equal.

What happens if two switches have the same Root Bridge ID?

If the Root Bridge IDs are identical, the next parameter compared is the Root Path Cost. The port with the lower accumulated cost to the root bridge will be favored in the election process.

More H12-821 FAQ →

Community Votes

A
34%
B
33%
C
33%

34% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.

Discussion 1 contributions

Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.

From public community threads 1

  1. HCIP Resolutor 👍 1
    RPC (Root Path Cost - Opción B): Es la segunda métrica clave evaluada tras comparar el Root ID. Se ignora por completo en la respuesta del dump. Peer PID and local PID (Opción D): STP NUNCA compara el PID del vecino directamente contra el PID local para decidir un Designated Port entre dos switches distintos. La comparación entre puertos de un mismo switch vecino solo usa el Sender Port ID (PID del puerto transmisor).

Reader comments & corrections

No reader corrections yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Practice All H12-821 Questions

Access 168 questions with complete answers and detailed explanations.

View Full H12-821 Practice Test →

← Back to H12-821 Study Guide