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

OSPF

parvinder_sh
Level 1
Level 1

is any difference between "ip cef" & "ip load-sharing per-packet" ?

3 Replies 3

ankurbhasin
Level 9
Level 9

HI Parvinder,

Yes there is a difference between the two.

Per packet load balancing disables the forwarding acceleration by a route cache, as the route cache information includes the outgoing interface. For per-packet load balancing the forwarding process determines the outgoing interface for each packet by looking up the route table and picking the least used interface. This ensures equal utilization of the links, but is a processor intensive task and impacts the overall forwarding performance.

The design of Cisco Express Forwarding includes enhancements that allow to use load balancing without sacrificing forwarding performance even when using per packet load balancing. Previously per packet load balancing required disabling of route-caching mechanisms like fast switching or optimum switching.

So CEF switching does not compromise on performance.

HTH

Ankur

mheusinger
Level 10
Level 10

Hi,

the command "ip cef" activates CEF in a router whereas "ip load-sharing per-packet" changes the CEF load sharing behaviour on an interface from the default "per-destination" to "per-packet".

Have a look at f.e. "Configuring Cisco Express Forwarding"

http://www.cisco.com/en/US/products/sw/iosswrel/ps1831/products_configuration_guide_chapter09186a00800ca6ca.html

Did this help? Then please rate it.

Martin

Review Cisco Networking for a $25 gift card