Você está na página 1de 3

7/24/2016

StaticRouteLoadBalance

HOW DOES INTERNET WORK


ALL ARTICLES

ABOUT THIS PROJECT

ABOUT THIS PROJECT

SECURITY

ROUTING

VOICE AND SECURITY

NETWORK VIRTUALIZATION

CONFIGURE

IPV6

PROTOCOLS

FUNDAMENTALS

Home Networking Network Layer


Static Route Load Balance

Search the site

Static Route Load Balance


Valter Popeskic
December 22, 2015
Routing, Transport layer
2 Comments

Search

Network layer,

HOW IT WORKS?
If you have two routers / two Layer3 switches connected with two
L3 links (two paths) you can route with two equal static routes
towards the same prex and the router will load balance trac
across both links.
The idea is to make two same static routes on the same router but
with dierent next-hops. The question was: Which link or which
route will be used? And if the trac willbe load balanced, which
mechanism will be used to sharethe trac across both of links.

POPULAR POSTS
What is Jitter in
Networking?
INE R&Sv5 Workbook
Full-Scale Practice Lab1
made in GNS3
Dierence between
Routed and Routing
Protocols
Static vs Dynamic VLANs
PBR - Policy-based
Routing conguration
example
I became CCIE# 46173

Intelligent Routing
Platform

http://howdoesinternetwork.com/2015/staticrouteloadbalance

1/5

7/24/2016

StaticRouteLoadBalance

iproute10.0.0.0255.0.0.0192.168.10.2
iproute10.0.0.0255.0.0.0192.168.11.2

Real-time BGP
monitoring
that allows visually
tracking network
performance

If both routes have the same destination prex and no dierent


Administrative Distance is congured, both routes will get
installed in the routing table. Routing table will then leave to the
switching process the job of load-sharing. That is, route-cache
mechanisms, CEF in case of Cisco device will do load-share per
session using source-destination IP.

Automated BGP
management
reduces the need for
engineering effort and
eliminates the risk of
human error

MORE ABOUT THAT


CEF Load-Balancing Overview

A fresh look at BGP NEXT HOP attribute

CEF Cisco Express Forwarding load balancing is by default


using source and destination IP to calculate the hash and
distribute trac over multiple paths.
BGP next hop attribute is a
well-known mandatory
attribute. When looking at

There are two methods of path selection, per-destination being


default one:

a single router that has a


BGP session...

load balancing per-destination

What you should know about BGP

load balancing per-packet

LOCAL PREF

Per-Destination Load Balancing


Router will take packet source and destination IP to calculate the
hash and use multiple paths to load share trac. Packets from
one source destined towards same destination will always take
the same path. Trac destined for dierent source-destination
pairs tend to go across dierent paths.
CEF is enabled by default on Cisco router so Per-destination load
balancing is enabled by default to. It is fairly logical that Perdestination load balancing is default one because is ensuring that
packets for a given host pair have the best chance to arrive in
order which can not always be true with Per-Packet Load
Balancing
Per-Packet Load Balancing
Router will use round-robin to send successive data packets over
dierent links. If you have destinations that are available with
single path at the end it will work ne for other situations Perpacket load balancing can reorder packets and aect
performance of TCP stack. So its not really the right way to go if
you are forwarding VoIP or using any kind of stream on your
network.
http://howdoesinternetwork.com/2015/staticrouteloadbalance

The LOCAL_PREF or local


preference is the rst
attribute a Cisco router
looks at to...

CATEGORIES
Networking (191)
Application layer (22)
Conguration (32)
Router Cong (8)
Data link layer (6)
Equipment and tools
(22)
IPv6 (11)
Network
Fundamentals (18)
Network layer (6)
Network Virtualization
2/5

7/24/2016

StaticRouteLoadBalance

CONFIGURATION

(1)

CEF is on by default, this is the command to enable it if you nd

Physical layer (2)


Presentation layer (1)

some device with CEF o:

Protocols (9)

router#ipcef

Routing (22)
Security (34)

This is how you see if CEF is working:

Security layer 2 (16)

router#showipcef

Session layer (2)


Switching (18)
Transport layer (8)

This is how you see CEF entry of some prex:

Troubleshooting (4)

router#showipcef10.10.10.0

VoIP Voice over IP


(11)
Scientic & Academic (2)

This is how you change load-balancing from Per-Destination to

Word from the author (11)

Per-Packet:

iploadsharingperpacket

SHARE:

Email
Pocket

LinkedIn 25
Reddit

Twitter

Facebook

Feedly
Tumblr

Google

Pinterest

Print

LIKE THIS:
Loading...

Adsby Google

RouteMap Routing IPV6CiscoCiscocom

Related Posts
Routing Static and
Dynamic routes
What is route?

TCAM and CAM


memory usage
inside networking
devices

INE R&Sv5
Workbook FullScale Practice Lab1
made in GNS3

2 Comments
http://howdoesinternetwork.com/2015/staticrouteloadbalance

3/5

Você também pode gostar