Juniper vs Cisco BGP Path Selection Criteria

Juniper:

1. Can the next hop be resolved?
2. Prefers the path with the highest local preference
3. Prefers the path with the shortest AS path length
4. Prefers the path with the lowest origin
5. Prefers the path with lower MED value
6. Prefers paths learned by eBGP over iBGP
7. Prefers paths with lowest IGP metric
8. Prefers paths with shortest cluster length
9. Prefers routes from peer with lowest router ID
10. Prefers routes from peer with lowest peer ID

Cisco:

1. Choose the route with the highest weight.
2. If weight is not set, choose the route with the highest local preference.
3. Choose routes that this router originated.
4. Choose the path with the shortest Autonomous System path.
5. Choose the path with the lowest origin code (i is lowest, e is next, ? is last).
6. Choose the route with the lowest MED, if the same Autonomous System advertises the possible routes.
7. Choose an EBGP route over an IBGP route.
8. Choose the route through the nearest IGP neighbor as determined by the lowest IGP metric.
9. Choose the oldest route
10. Choose a path through the neighbor with the lowest router ID.
11. Choose a path through the neighbor with the lowest IP address.