How a BIG-IP load balancer is put together, and the commands you reach for first.
The building blocks
Object
What it is
Node
A server, identified by IP address
Pool member
A node plus a port, for example 10.1.1.10:443
Pool
A group of members that do the same job
Monitor
A health check that marks members up or down
Virtual server
The address and port clients connect to (the VIP)
Profile
How to treat the traffic: TCP, HTTP, SSL
iRule
A small script for custom traffic decisions
Self IP
The BIG-IP's own address on a VLAN
SNAT
Changes the client source address to one the BIG-IP owns
Path of a request
What a request passes through
Client connects to the virtual server
Profiles are applied (TCP, SSL, HTTP)
iRules run, if any
Persistence is checked: has this client been here before?
The pool's load-balancing method picks a healthy member
SNAT is applied if configured, and the request goes to the server
Load-balancing methods
Method
Picks
Round Robin
Each member in turn
Ratio
More traffic to members with a higher weight
Least Connections
The member with the fewest open connections
Fastest
The member answering quickest
Observed / Predictive
Based on connection counts and trends over time
Persistence
Type
Keeps a client on the same server using
Source address
The client IP address
Cookie
A cookie the BIG-IP inserts (HTTP only)
SSL session ID
The TLS session
Universal
Anything an iRule extracts
SSL choices
Mode
Meaning
Offload
Client SSL profile only: decrypt on the BIG-IP, plain to servers
Bridging
Client SSL and server SSL profiles: decrypt, inspect, re-encrypt
Passthrough
No SSL profile: the BIG-IP cannot read the traffic
Why SNAT matters
If the servers' default gateway is not the BIG-IP, replies go straight back to the client and the connection breaks. SNAT (often Auto Map, which uses a self IP) makes the servers reply to the BIG-IP.
Status colours
Colour
Meaning
Green
Available
Red
Offline: monitor failed
Blue
Unknown: no monitor assigned
Yellow
Unavailable: for example connection limit reached
Black
Disabled by an administrator
Commands
Command
Use
tmsh show ltm virtual
Virtual server status and statistics
tmsh show ltm pool <name> members
Member state and connection counts
tmsh list ltm virtual <name>
Configuration of one virtual server
tmsh show sys connection cs-server-addr <vip>
Live connections to a virtual server
tmsh show sys failover
Active or standby
tmsh run cm config-sync to-group <group>
Push configuration to the HA peer
tmsh save sys config
Save the running configuration
tcpdump -ni 0.0:nnn host <ip>
Capture on all VLANs with BIG-IP details
tail -f /var/log/ltm
Monitor and traffic-management log
CCIE Journals cheat sheet. Free to print and share for study.
Welcome to my blog, dedicated to network and security engineering enthusiasts. Here, you can learn about various vendors and gain valuable insights and resources to excel in the field of network engineering!
0 Comments
Post a Comment