cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
512
Views
0
Helpful
3
Replies

default route, loadbalancing

sarahr202
Level 5
Level 5

hi every one

please consider  following routing table

gateway of last resort is 10.10.10.10 to network 0.0.0.0

S* 0.0.0.0 [1/0] via 10.10.10.10.10

               [1/0] via 11.11.11.11

My question will router loadbalance the traffic each time it has to use default route.i.e if router has to send two packets using default route, will it use 10.10.10.10 for one packet and 11.11.11.11 for the second packet ?  or  router simply use 10.10.10.10  as long as 10.10.10.10 is up, it will only use 11.11.11.11  if 10.10.10.10 is down for  any reason?

thanks and have a great weekend.

2 Accepted Solutions

Accepted Solutions

Peter Paluch
Cisco Employee
Cisco Employee

Hi Sarah,

Indeed, the router will load-balance every time it uses the default route. However, with the CEF turned on (by default), there are two methods of load-balancing: the per-destination and the per-packet approach.

The per-destination load balancing method is the default. It means that packets towards X.X.X.X matching the default route will always be sent through one next hop, while packets towards another destination Y.Y.Y.Y also matching the default route will be sent through another next hop. This is done to prevent packet reordering due to different delays over different paths, and also, to prevent problems with stateful firewalls that would drop subsequent packets if they didn't receive the first packet.

The per-packet load balacing does exactly what you described earlier: each time the default route entry is used, the packet will be forwarded to a different next hop. This makes the link utilization more equal but unfortunately, there are negative side effects to possible packet reordering, and it is totally unusable if stateful firewalls, NAT boxes, proxies or similar devices are put into path.

Best regards,

Peter

View solution in original post

3 Replies 3

Peter Paluch
Cisco Employee
Cisco Employee

Hi Sarah,

Indeed, the router will load-balance every time it uses the default route. However, with the CEF turned on (by default), there are two methods of load-balancing: the per-destination and the per-packet approach.

The per-destination load balancing method is the default. It means that packets towards X.X.X.X matching the default route will always be sent through one next hop, while packets towards another destination Y.Y.Y.Y also matching the default route will be sent through another next hop. This is done to prevent packet reordering due to different delays over different paths, and also, to prevent problems with stateful firewalls that would drop subsequent packets if they didn't receive the first packet.

The per-packet load balacing does exactly what you described earlier: each time the default route entry is used, the packet will be forwarded to a different next hop. This makes the link utilization more equal but unfortunately, there are negative side effects to possible packet reordering, and it is totally unusable if stateful firewalls, NAT boxes, proxies or similar devices are put into path.

Best regards,

Peter

thanks Peter

Review Cisco Networking for a $25 gift card