Juniper – Load Balancing

Load Balancing

Juniper routers offer three types of load-balancing options:

  • Aggregated Interfaces (Layer 2)
  • Equal-Cost Multipath (ECMP) (Layer 3)
  • BGP Multipath (Layer 3)

Equal-Cost Multipath (ECMP)

policy-options {
    policy-statement your-name-here {
        then {
            load-balance per-packet;
        }
    }
}
routing-options {
    forwarding-table {
        export [ your-name-here ];
    }
}

BGP Multipath

forwarding-options {
    hash-key {
        family inet {
            layer-3;
            layer-4;
        }
    }
}

Hidden Hash Configuration Summary

forwarding-options {
    hash-key {
        family inet {
            layer-3 {
                destination-address;
                incoming-interface-index;
                protocol;
                source-address;
            }
            layer-4 {
                destination-port;
                source-port;
                type-of-service;
            }
        }
        family mpls {
            label-1;
            label-2;
            no-interface-index;
            payload {
                ip;
            }
        }
    }
}

 

This entry was posted in Juniper. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s