02-26-2011 02:39 AM - edited 03-06-2019 03:46 PM
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.
Solved! Go to Solution.
02-26-2011 02:52 AM
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
02-26-2011 02:58 AM
Hi Sarah,
You may be interested in reading the following articles as well:
http://www.cisco.com/en/US/partner/tech/tk365/technologies_tech_note09186a0080094820.shtml
Best regards,
Peter
02-26-2011 02:52 AM
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
02-26-2011 02:58 AM
Hi Sarah,
You may be interested in reading the following articles as well:
http://www.cisco.com/en/US/partner/tech/tk365/technologies_tech_note09186a0080094820.shtml
Best regards,
Peter
02-26-2011 04:26 AM
thanks Peter
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide