Copyright (c) 2026 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.
1.2.1. How Packets Find Their Way
Imagine you're giving directions to a delivery driver. "Go to New York" is less specific than "Go to 123 Main St, Manhattan." Routing works the same way—more specific routes take precedence.
Route Priority in Azure:
- Most specific prefix wins (longest match)
- For equal prefixes, route type matters:
- User-defined routes (UDRs) > BGP routes > System routes
Consider this example:
| Route | Prefix | Next Hop |
|---|---|---|
| System route | 10.0.0.0/16 | VNet |
| UDR | 10.0.1.0/24 | Virtual Appliance |
| BGP route | 10.0.0.0/16 | VPN Gateway |
Traffic to 10.0.1.50 goes to the Virtual Appliance (UDR wins—same prefix length but UDR > BGP). Traffic to 10.0.2.50 follows the VNet route (system route with matching prefix).
Written byAlvin Varughese
Founder•15 professional certifications