You are on page 1of 34

Introduction to

Load Balancing

BRKAPP-1001

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 2

2006, Cisco Systems, Inc. All rights reserved. 1


14503_04_2008_c2.scr
Agenda

Introduction
Load Balancing and Health Monitoring
Flow Management
Server Offload
High Availability
Deployments
Geographic Load Balancing
Whats Next ?

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 3

Cisco Application Delivery Networks


Network Classification Application Scalability Application Networking
Quality of service Server load-balancing Message transformation
Network-based app recognition Site selection Protocol transformation
Queuing, policing, shaping SSL termination and offload Message-based security
Visibility, monitoring, control Video delivery Application visibility

WAN

Application Acceleration WAN Acceleration Application Optimization


Latency mitigation Data redundancy elimination Delta encoding
Application data cache Window scaling FlashForward optimization
Meta data cache LZ compression Application security
Local services Adaptive congestion avoidance Server offload
BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 4

2006, Cisco Systems, Inc. All rights reserved. 2


14503_04_2008_c2.scr
Other Cisco Live Breakout Sessions
that You May Want to Attend
Relevancy

GSS ISR WAAS ACNS ACE AXG Applications


BRKAPP-2002 Server Load Balancing Design
BRKAPP-3003 Troubleshooting ACE
BRKAPP-1004 Introduction WAAS
BRKAPP-2005 Deploying WAAS
BRKAPP-3006 Troubleshooting WAAS
BRKAPP-1008 What can Cisco IOS do for my application?
BRKAPP-1009 Introduction to Web Application Security
BRKAPP-2010 How to build and deploy a scalable video
communication solution for your organization
BRKAPP-2011 Scaling Applications in a Clustered
Environment
BRKAPP-2013 Best Practices for Application Optimization
illustrated with SAP, Seibel and Exchange
BRKAPP-2014 Deploying AXG
BRKAPP-1015 Web 2.0, AJAX, XML, Web Services for
Network Engineers
BRKAPP-1016 Running Applications on the Branch Router
BRKAPP-2017 Optimizing Application Delivery
BRKAPP-2018 Optimizing Oracle Deployments in
Distributed Data Centers
BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 5

The Application Delivery Journey

Client/Server Web Enabled SOA/Web 2.0


Application
Trends Centralized Decentralized Distributed
Few Connections 1000s of Connections Exponential Increase in
Connections

Early Application End-to-End Application


Technologies Aware Networks Delivery Networks
L4-7 Switching Message Visibility
Cisco Load Balancing Virtualization
Solution Web
Acceleration Deep Packet
Inspection
QoS
WAN Multi-Gigabit
Optimization Performance

19952000 20002006 2006 and Beyond

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 6

2006, Cisco Systems, Inc. All rights reserved. 3


14503_04_2008_c2.scr
How It All Started
Direct Communication Clients/Servers

IP TCP http Data

X
Web Server
Benefit
Simple solution

Issue
No fault tolerance
Limited performance and scalability

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 7

Scaling to a Few Servers


The Software Approach

S/W Load Balancer


Clustering Technologies
Benefit
Addresses some of the fault tolerant and performance issues

Issue
Still limited in scale/performance.
Leverages server resources for LB and HA
Proprietary clustering technologies
BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 8

2006, Cisco Systems, Inc. All rights reserved. 4


14503_04_2008_c2.scr
Scale and High Availability for Larger
Deployments
The Hardware-Based Solution

Benefit
Addresses fault tolerant, performance and scalability issues
Future proof: architecture includes hardware co-processors to
support resource-intensive features (i.e., SSL, compression)

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 9

The Main Functions of a Load Balancer


Clients Load Web
Balancer/ Servers
Content
Switch
Database

Represents multiple server farms with


public IP addresses Virtual IPs or VIPs
(which clients resolve via DNS) Streaming
Monitors the health of servers
Intelligently distributes incoming
requests according to configurable rules

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 10

2006, Cisco Systems, Inc. All rights reserved. 5


14503_04_2008_c2.scr
Terminology Load Balancing
Algorithm
Clients Content (Predictor)
Switch
- Round Robin
Load
Balancer
Serverfarm
Servers

Client-Side Keepalive (Probe)


Gateway
Class-Map
URL = /news
Virtual IP Address (VIP) User-Agent = WindowsCE
Client = 192.0.0.0/8

172.16.2.100 XML
TCP port 80 Policy-Map Gateways
If match class-map X
then use serverfarm X
BRKAPP-1001 else use serverfarm y 11
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public

Devices Being Load Balanced

Server
Proxies
Accelerators (compression engines, SSL offloaders)
Caches (reverse and transparent)
Firewalls (Layer 3 and Layer 2)
VPN concentrators
Routers
Generic IP device requiring load distribution and/or
redundancy

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 12

2006, Cisco Systems, Inc. All rights reserved. 6


14503_04_2008_c2.scr
Traffic Being Load Balanced
Generic IP traffic (i.e. IPSec tunnels)
Generic UDP and TCP (i.e. proprietary protocols)
Network services (i.e. LDAP, DNS, Radius)
HTTP (i.e. Web Presentation Layer, Web Services, SOAP/XML)
Voice and Video (i.e. RTSP, SIP, H.323)
Remote terminals (i.e. Windows Terminal Services)
Multi-connection protocols (i.e. FTP, RTSP)
Multi-tier packaged applications (i.e. SAP, Oracle, Microsoft, BEA)
Vertical specific applications (i.e. medical, finance, education)

Ethernet IP TCP HTTP Ethernet


Payload
Header Header Header Header Trailer
Layer 2 Layer 3 Layer 4
Layer 5-7
BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 13

HTTP
The Most Common Load Balanced Protocol

RFC 2616,HTTP 1.1 IETF draft standard:


The hypertext transfer protocol (HTTP) is an
application-level protocol for distributed,
collaborative, hypermedia information systems
Three important elements of an HTTP request:
Method (GET, POST, )
URI
Headers (include cookies)

Carried over TCP


Multiple HTTP requests can be tunneled over the same
TCP connection

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 14

2006, Cisco Systems, Inc. All rights reserved. 7


14503_04_2008_c2.scr
HTTP 1.0Single Request

Client Web
Server

SYN
SYN_ACK
ACK
GET / HTTP 1.0
ACK
HTTP/1.0 200 OK
Continuation
ACK
FIN
FIN_ACK
ACK
BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 15

HTTP 1.1Two Requests, No Pipelining

Client Web
Server

SYN
SYN_ACK
ACK
GET /a.gif HTTP 1.1
ACK
HTTP/1.1 200 OK
ACK
GET /b.jpg HTTP 1.1
ACK
HTTP/1.1 200 OK
Continuation
ACK
FIN
FIN_ACK
ACK
BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 16

2006, Cisco Systems, Inc. All rights reserved. 8


14503_04_2008_c2.scr
HTTP 1.1Building an Entire Page

TCP 3101 > 80

index.html
TCP 3102 > 80

logo1.gif globe.gif footpage.jpg

TCP 3103 > 80

/cgi-bin/count

The behaviour
depends TCP 3104 > 80
on the browser
bannertop.jpg menu.jpg

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 17

FTPFile Transfer Protocol


A Multi-Connection Protocol
Active FTP

Client
C:>ftp
test.cisco.com
FTP server test
User: abc
Password: xxx
FTP
230 User abc
Server

3016 21
1
2
3017 20
3
4
BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 18

2006, Cisco Systems, Inc. All rights reserved. 9


14503_04_2008_c2.scr
FTPFile Transfer Protocol
A Multi-Connection Protocol
Passive FTP

Client
C:>ftp
test.cisco.com
FTP server test
User: abc
Password: xxx
FTP
230 User abc
Server

3018 21
1
2
3019 2036
3
4
BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 19

Load Balancing and


Health Monitoring

How Connections Are Distributed to the Best Available Servers

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 20

2006, Cisco Systems, Inc. All rights reserved. 10


14503_04_2008_c2.scr
Load Balancing Algorithms

Client Serverfarm

How to Distribute Requests Across Servers?


Enhanced Predictors Improve Serverfarm Efficiency
BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 21

Load Balancing Algorithms


(Weighted) Round Robin
Very simple, servers receive equal (or proportional) amount of requests
(Weighted) Least Connections
Dynamic, based on open connections, optimizes load across servers
Hash on IP (source/destination, with mask)
No state required for persistence
Hash on URL or portion of URL
Useful for transparent cache redirection
Based on Load
Server load retrieved via SNMP or feedback protocols
Fastest
Based on response time: fastest servers receive newer connections
Least Bandwidth
Real-time amount of traffic considered to select less active server
BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 22

2006, Cisco Systems, Inc. All rights reserved. 11


14503_04_2008_c2.scr
Session PersistenceStickiness
The Shopping Cart Problem

Browse

Ill Never
Shop Here 1
Again!
Select

3 Buy

Empty?!?
BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 23

Session PersistenceStickiness
Session: logical aggregation of multiple simultaneous or
subsequent connections
Sessions are limited in time (timeout)
Servers might keep session state locally
Load distribution across multiple servers introduces the problem

The content switch needs to identify a session and send


connections belonging to the same session (i.e. from the
same client) to the same server

Methods to identify the session or client:


Source IP address, HTTP session cookie, SIP session ID,
SSL ID, generic protocol session data,
BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 24

2006, Cisco Systems, Inc. All rights reserved. 12


14503_04_2008_c2.scr
Health Checking
The content switch needs to continuously monitor the
back-end servers
Failed servers have to be identified and removed from rotation:
the load balancing algorithms adapt to the change
Server failures should be transparent to clients
Servers recovering from failures should be checked and put back in
the available pool, avoiding flapping
Any failure affecting client-server interaction should be detected:
connectivity, application or back-end servers malfunctions

Clients Serverfarm

X
BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public
X 25

Active ProbingKeepalives
Intended to run periodically
Generated by the load balancer: a correct reply is expected
Either predefined health checks or user-configurable scripts
Examples: ICMP (L3 connectivity), TCP (stack), HTTP (application)
For each probe:
Interval, retry times
Maximum TCP open time
Maximum receive time (max response time)
Failed retry time, successful retries before back in service

Serverfarm

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 26

2006, Cisco Systems, Inc. All rights reserved. 13


14503_04_2008_c2.scr
In-Band Health Monitoring
The load balancer monitors server-to-client inband traffic and
keep counters for consecutive errors
Can catch basic errors:
No replies from server
RSTs from server

For HTTP traffic, can perform return error code checking (i.e. 500-
type errors should remove servers from rotation)

Clients Serverfarm

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 27

Flow Management

Layer 4 and Layer 7 Processing

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 28

2006, Cisco Systems, Inc. All rights reserved. 14


14503_04_2008_c2.scr
Flows, Connections, Sessions

A Load Balancer Maintains


Much More State than a Router
on a Per-Flow Basis

Three main types of flows


TCP: IP protocol, src/dst IP, src/dst L4 port, TCP state
UDP: IP protocol, src/dst IP, src/dst L4 port
Generic IP: source/destination IP

TCP flows (connections) require setup


Multiple flows between the same client and server might be
logically grouped into a session
BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 29

Layer 4 Switching
L2L4 information is always present in the first packet
of the flow (unless it is a fragment!)
IP protocol
Source/destination IP addresses
Source/destination L4 ports (for TCP/UDP)
Source VLAN, MAC address

The load balancing decision can be made on the first packet

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 30

2006, Cisco Systems, Inc. All rights reserved. 15


14503_04_2008_c2.scr
Layer 4 Flow SetupBasic Load Balancing
Decisions Made on First Packet

Matches VIP
SYN Selects Server
Rewrites
L2/L3/L4
Matches Existing
Flow
Rewrites L2/L3/L4 SYN_ACK
Shortcut

ACK
GET/HTTP 1.1 Shortcut
Data
Shortcut
OK
HTTP/1.1 200 Data
Shortcut

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 31

Layer 7 Switching
L5L7 information is only received after the TCP setup and might
span multiple packets
HTTP URLs, cookies, header fields
SSL session ID
FTP data channel port
Generic application data
Requires TCP termination and buffering!

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 32

2006, Cisco Systems, Inc. All rights reserved. 16


14503_04_2008_c2.scr
Layer 7 Flow Setup for HTTP (1/3)
Load Balancing Decisions Require More Data

Matches VIP w/L7


SYN rule
Chooses SEQ #
SYN_ACK Replies w/SYN_ACK

ACK Starts
Buffering

GET/HTTP 1.1
Data

ACK ACKs Client Packets


Keeps Buffering

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 33

Layer 7 Flow Setup for HTTP (2/3)


Load Balancing Decisions Require More Data

Parses the Data


GET Continuatio
Data n Selects Server
Initiates TCP
ACK SYN

SYN_ACK
Acts as Client
Does Not Forward ACK
SYN_ACK

DataGET
Empties Buffer DataGET Cont
Sends Data to Server inuation

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 34

2006, Cisco Systems, Inc. All rights reserved. 17


14503_04_2008_c2.scr
Layer 7 Flow Setup for HTTP (3/3)
Load Balancing Decisions Require More Data

Does Not Forward ACK


Ready to
Splice the Flows ACK
Matches Existing Flow
Rewrites L2/L3/L4
OK
and SEQ/ACK HTTP/1.1 200 Data
Shortcut

ACK
Shortcut

Continuation Data
Shortcut

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 35

Layer 7 Flow SetupFull Proxy


The Most Flexible Approach

SYN
SYN_ACK
ACK
GET/HTTP 1.1
Data
ACK SYN
Independent client &
server connections

SYN_ACK
ACK
Full Proxy

DataGET

ACK
HTTP/1.1 200 OK HTTP/1.1 200 OK Data
ACK
Data

Client connection Server connection

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 36

2006, Cisco Systems, Inc. All rights reserved. 18


14503_04_2008_c2.scr
Content Switching Metrics
Connections per Second (CPS)
L4 vs. L7
HTTP requests per Second (CPS)
HTTP 1.1 vs. 1.0
Concurrent Connections (CC)
Bandwidth (in Gbps) and Packets per Second
Latency
Keepalives per second
Number of virtual servers/real servers
Number of policies/rules

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 37

Server Offload

Freeing Up Server CPU and Resources

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 38

2006, Cisco Systems, Inc. All rights reserved. 19


14503_04_2008_c2.scr
Server Offload Overview
What is it ?
Perform resource intensive functions on application traffic in the content switch
on behalf of the server. Often hardware accelerated.
Why ?
Servers can dedicate more resources to processing and serving client requests:
faster application response!
What can be offloaded ?
SSL processing, TCP setup/close, HTTP compression, XML processing,

Application Servers
Switch

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 39

Offloading SSL
Offload CPU-intensive SSL processing
Servers resources are dedicated to serving requests and running applications,
rather than encrypting data
Centralized key/certificate storage/management
Allows advanced content switching (URL-based, cookie-sticky,
payload parsing) and inspection of SSL traffic
Scalability: easy to add more SSL performance

Content
Switch

Encrypted to Clear Text to


VIP:443 Servers:80 Web
Servers
BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 40

2006, Cisco Systems, Inc. All rights reserved. 20


14503_04_2008_c2.scr
SSLHandshake
Full Abbreviated
Re-use same SSL session ID
Less latency - Faster applications

Client Hello

Server Hello
Certificate *
Server Key Exchange *
Certificate Request * Client Hello
Server Hello Done
Server Hello
* Certificate Change Cipher Spec
Client Key Exchange Finished
* Certificate Verify
Change Cipher Spec Change Cipher Spec
Finished Finished

Change Cipher Spec


Finished Application Data

Application Data
BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 41

Building an Encrypted Web Page

TCP 3101 > 443

SSL ID index.html
123

TCP 3102 > 443


SSL ID logo1.gif globe.gif footpage.jpg
123

TCP 3103 > 443


SSL ID bannertop.jpg menu.jpg
123
BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 42

2006, Cisco Systems, Inc. All rights reserved. 21


14503_04_2008_c2.scr
SSL Offload Metrics

New transactions per second (TPS)


Full SSL setup (asymmetric)
Depends on key size
Different from chipset RSA operations

Raw throughput (in Mbps or Gbps)


Symmetric

Concurrent connections (CC)


Number of SSL ID cached entries (for SSL ID re-use)
Number of services
Number of certificates
BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 43

Offloading TCP
TCP Reuse (Multiplex)
Offload TCP (HTTP) setup processing from servers
Servers resources are dedicated to serving requests and running
applications, rather than opening and closing TCP connections
TCP connections to the server are kept open
(HTTP 1.1 Connection Keepalive)
Client requests multiplexed to existing server connections
TCP1

TCP1 Pool1

TCP2

TCP2 Pool2

TCP3

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 44

2006, Cisco Systems, Inc. All rights reserved. 22


14503_04_2008_c2.scr
High Availability

Protecting Against Single Points of Failure

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 45

Redundancy

Heartbeat and State


Synchronization link
BACKUP

Internet VIP Active IP Interface


192.1.1.100 10.1.1.254

ACTIVE

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 46

2006, Cisco Systems, Inc. All rights reserved. 23


14503_04_2008_c2.scr
Terminology
Box-to-Box Redundancy Per-VIP Redundancy
An Entire Load Balancer Is
Either Active or Standby Each VIP Can
Granularity Independently Be Active or
All VIPs Are Standby
in the Same State

Active-Active Active-Standby

Only One Entity Can


Multiple Entities Can Process Traffic at Any Given
State Process Traffic at the Same Time
Time (The Other Is
Standby/Monitoring)
BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 47

RedundancyStatefulness

Stateless Sticky Stateful Full Stateful

LB Communication Sync/Monitor Sticky Tables Full Flow Tables

Ideal For Stateless Content Session Stateful Long Living Flows

LB Resources Low Medium High

Adaptive Redundancy
Stateful Level Configurable
Independently on Each Policy
BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 48

2006, Cisco Systems, Inc. All rights reserved. 24


14503_04_2008_c2.scr
Deployments

Network Integration Options and Examples

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 49

Router Mode

Servers Default Gateway:


Content Switch IP
Content Switch Routing

Subnet A Subnet B
Servers in private IP subnet
VIPs usually in different, routable subnet from servers
Requires two IP subnets
Easy to deploy with many server IP subnets

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 50

2006, Cisco Systems, Inc. All rights reserved. 25


14503_04_2008_c2.scr
Bridge Mode
Servers Default Gateway:
Upstream Router

Content Switch Bridging

Subnet A
Servers in routable IP subnet
VIPs can be in the same or different subnet
Requires one IP subnets for each farm
Easy deploy for firewall or cache load balancing

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 51

L3 One-Arm Mode
Servers Default Gateway:
Subnet B

Upstream Router

L2-rewrite not possible


Content switch not inline Subnet B
Does not see unnecessary traffic
Requires PBR, server default gateway pointing
to load balancer or client source NAT
The return traffic is needed!
Not as common as bridge or routed mode due to problems
with forcing traffic back to CSM in return direction
PBRPolicy Based Routing, NATNetwork Address Translation
BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 52

2006, Cisco Systems, Inc. All rights reserved. 26


14503_04_2008_c2.scr
L3 One-Arm ModeFlows

VIP
Server
IP
1 3 2
4 3
1 Just Routing Traffic to the VIP
2 Just Routing Traffic to the Server IP
3 L2 to the Server Default Gateway
3 Routing Would Break; Need to Use Either PBR, SNAT,
or Server Default Gateway
4 Just Routing to the Client IP

PBRPolicy Based Routing, sNATSource Network Address Translation


BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 53

L2 One-Arm Mode
Return Traffic Bypassing Load Balancer
Servers
Default Gateway:
Upstream Router

Same IP Subnet
Bypass for return traffic: high throughput!
Requires MAC rewrite, L2 adjacency
Servers need identical loopback addresses (one per VIP)
TCP termination not possible: no L7 features!
Load balancer blind to return traffic (inband, accounting)
BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 54

2006, Cisco Systems, Inc. All rights reserved. 27


14503_04_2008_c2.scr
A Multi-Tier Example of Deployment
Application Server Suite 10g
3 serverfarm in 3 distinct APPHosts
IP subnets configured in
bridge mode
Application Servers
(portal, Java,
caching)

IDMHosts

Identity Management
(login functions)

DBHosts
OIDHosts
Separate Data-Base
farm not requiring Internet Directory
load balancing (LDAP)

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 55

Firewall Load Balancing


FWLB + SLB

Internal Load Balancer


Inside
distributes traffic to servers
and stores source MAC address Network
for return traffic to firewalls
1

Internal
2 3 Load Balancer
8
7 6
External 4
Load Balancer
5

Firewall Serverfarm
farm
BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 56

2006, Cisco Systems, Inc. All rights reserved. 28


14503_04_2008_c2.scr
Geographic
Load Balancing

Disaster Recovery and Load Distribution Across Data Centers

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 57

Distributed Data Center Topology

Internal
Service
Internet Service
Network
Provider A Provider B Internal
Network

Front-End Tier
(Web)

Application
Tier

Database
Tier

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 58

2006, Cisco Systems, Inc. All rights reserved. 29


14503_04_2008_c2.scr
Site Selection Mechanisms

Site selection mechanisms depend on the technology


or mix of technologies adopted
for request routing:
1. HTTP Redirect
2. DNS Based
3. Route Health Injection and L3 Routing

Health of servers and applications need to


be taken into account
Optionally, also other metrics (like load and distance)
can be measured and utilized for a better selection

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 59

DNS-Based Site Selection


Root DNS for/ Root DNS for .com
DNS Proxy 2
3 4 Authoritative DNS
5
cisco.com
1 6
10 7
8

Client 9 Authoritative
DNS
http://www.cisco.com/ www.cisco.com
e s
s

paliv
live

Kee
epa
Ke

Data Center 1 Data Center 2


BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 60

2006, Cisco Systems, Inc. All rights reserved. 30


14503_04_2008_c2.scr
DNS-Based Site Selection
Root DNS for/ Root DNS for .com
DNS Proxy 2
3 4 Authoritative DNS
5
cisco.com
1 6
10 7
8

Client 9 Authoritative
TCP:80
DNS
http://www.cisco.com/ www.cisco.com
e s

s
paliv

live
Kee

epa
Ke
Data Center 1 Data Center 2
BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 61

Whats Next ?

Load Balancing, Content Switching, Application Delivery


and Cisco Products

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 62

2006, Cisco Systems, Inc. All rights reserved. 31


14503_04_2008_c2.scr
Advanced Requirements: From Load
Balancing to Application Delivery
Server Offload
Free up server CPU and resources
Application Acceleration
Better user experience, faster transactions
Bandwidth Reduction
Efficient WAN resources utilization
Application and Protocol Inspection
Protection against sophisticated application-specific attacks
Virtualization
One physical device behaves as many: maximum deployment
flexibility and separation of resources
Flexible Network Management
Allows multiple users, with different responsibilities, to
simultaneously manage the device

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 63

Cisco Application Control Engine Family


XML Switching and PCI Application Switching
Multi-Module
(64 Gbps)
ACE XML Gateway
30,000 TPS
Module
(4-16 Gbps) +

ACE Web ACE


Module
Application 16 Gbps
Firewall
ACE
Appliance Module
(1-2 Gbps) 8 Gbps
ACE
Module One-Click
4 Gbps
ACE 4710 Migration
2 Gbps Tools
ACE XML
ANM Gateway
ACE 4710 Manager
1 Gbps
ACE GSS
20K DNS RPS
CSS 11501
Up to 1 Gbps Global Products and Tools

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 64

2006, Cisco Systems, Inc. All rights reserved. 32


14503_04_2008_c2.scr
Q and A

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 65

Recommended Reading

Continue your Cisco Live


learning experience with further
reading from Cisco Press
Check the Recommended
Reading flyer for suggested
books

Available Onsite at the Cisco Company Store


BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 66

2006, Cisco Systems, Inc. All rights reserved. 33


14503_04_2008_c2.scr
Complete Your Online
Session Evaluation
Give us your feedback and you could win Dont forget to activate
fabulous prizes. Winners announced daily. your Cisco Live virtual
account for access to
Receive 20 Passport points for each session all session material
evaluation you complete. on-demand and return
for our live virtual event
Complete your session evaluation online now in October 2008.
(open a browser through our wireless network Go to the Collaboration
to access our portal) or visit one of the Internet Zone in World of
stations throughout the Convention Center. Solutions or visit
www.cisco-live.com.

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 67

BRKAPP-1001
14503_04_2008_c2 2008 Cisco Systems, Inc. All rights reserved. Cisco Public 68

2006, Cisco Systems, Inc. All rights reserved. 34


14503_04_2008_c2.scr

You might also like