Mental Model
The diameter is the longest path between any two nodes in a tree, which may or may not pass through the root.
Analogy: Imagine a tree as a network of roads connecting cities; the diameter is the longest possible route you can take between two cities without repeating roads.
1
/ \
2 3
/ \
4 5
Diameter could be path 4 -> 2 -> 1 -> 3 or 5 -> 2 -> 1 -> 3