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:
  1. Most specific prefix wins (longest match)
  2. For equal prefixes, route type matters:
    • User-defined routes (UDRs) > BGP routes > System routes

Consider this example:

RoutePrefixNext Hop
System route10.0.0.0/16VNet
UDR10.0.1.0/24Virtual Appliance
BGP route10.0.0.0/16VPN 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).

Alvin Varughese
Written byAlvin Varughese
Founder15 professional certifications