0
0
AWScloud~10 mins

Routing policies (simple, weighted, latency) in AWS - Step-by-Step Execution

Choose your learning style9 modes available
Process Flow - Routing policies (simple, weighted, latency)
User DNS Request
Check Routing Policy Type
Simple
User gets IP
Connects
User DNS requests are routed based on the chosen policy: simple returns one IP, weighted distributes traffic by weights, latency returns the lowest latency IP.
Execution Sample
AWS
User requests DNS -> Check policy -> Return IP based on policy
Shows how DNS queries are answered differently by simple, weighted, and latency routing policies.
Process Table
StepRouting PolicyInput RequestDecision LogicReturned IPReason
1SimpleRequest for example.comReturn single IP192.0.2.1Simple policy returns fixed IP
2WeightedRequest for example.comSelect IP based on weights (70% 192.0.2.1, 30% 192.0.2.2)192.0.2.1Weighted policy chooses IP with probability
3WeightedRequest for example.comSelect IP based on weights192.0.2.2Weighted policy chooses IP with probability
4LatencyRequest for example.comMeasure latency to IPs, choose lowest192.0.2.3Latency policy returns IP with lowest latency
5LatencyRequest for example.comMeasure latency to IPs, choose lowest192.0.2.4Latency policy returns IP with lowest latency
6----End of routing decisions
💡 Routing ends after returning IP based on policy logic
Status Tracker
VariableStartAfter Step 1After Step 2After Step 3After Step 4After Step 5Final
Returned IPNone192.0.2.1192.0.2.1192.0.2.2192.0.2.3192.0.2.4Varies per request
Key Moments - 3 Insights
Why does weighted routing sometimes return different IPs for the same domain?
Because weighted routing distributes traffic based on assigned weights, so different requests can get different IPs as shown in steps 2 and 3.
How does latency routing decide which IP to return?
Latency routing measures network delay to each IP and returns the one with the lowest latency, as seen in steps 4 and 5.
Does simple routing ever change the returned IP?
No, simple routing always returns the same single IP, demonstrated in step 1.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution table, what IP does simple routing return at step 1?
A192.0.2.2
B192.0.2.1
C192.0.2.3
D192.0.2.4
💡 Hint
Check the 'Returned IP' column at step 1 in the execution_table.
At which steps does weighted routing return different IPs?
ASteps 1 and 2
BSteps 4 and 5
CSteps 2 and 3
DSteps 3 and 4
💡 Hint
Look at the 'Routing Policy' and 'Returned IP' columns for steps 2 and 3.
If latency to 192.0.2.3 increases, which IP might latency routing return instead?
A192.0.2.4
B192.0.2.2
C192.0.2.1
D192.0.2.5
💡 Hint
Latency routing picks the IP with lowest latency; see steps 4 and 5 for examples.
Concept Snapshot
Routing policies control how DNS answers return IPs:
- Simple: returns one fixed IP
- Weighted: distributes traffic by weights
- Latency: returns IP with lowest network delay
Choose policy based on traffic needs and performance.
Full Transcript
Routing policies in AWS DNS decide how user requests get IP addresses. Simple routing always returns the same IP. Weighted routing splits traffic among multiple IPs based on assigned weights, so different requests may get different IPs. Latency routing measures network delay and returns the IP with the lowest latency to improve performance. This visual shows step-by-step how each policy picks the IP to return for DNS queries.