Skip to content

Load balancing

A load balancer gives several servers one address. netverdict has one load-balancing engine and two vendor grammars on top of it: F5 BIG-IP (f5-bigip) and Citrix NetScaler (citrix-netscaler). Both appear in the builder under “Load balancer”.

AreaLevelNotes
Virtual serversSupportedAn address and a port. The virtual address answers ARP and ping.
Pools and membersSupportedBIG-IP pools, NetScaler services and service groups.
Health monitorsSupportedICMP, TCP and HTTP (status code and receive string), sent as real probes from the load balancer.
Balancing methodsSupportedRound robin, ratio, least connections, source hash. The pick is deterministic.
PersistencePartialSource-address persistence. Cookie and other persistence profiles are carried, not run.
SNATSupportedBIG-IP automap and SNAT pools, standalone ltm snat; NetScaler SNIP and USIP.
No member availableSupportedThe load balancer resets the connection.
CaptureSupportedBoth legs of a connection (client side and server side) are in the capture.
Symbolic reachabilityPartialThe walk forks a virtual server to its available members. See Known limits.
L7 logicNot modellediRules, content-switching policies and HTTP, TCP and SSL profiles are carried. The connection is simulated at L4.
StandardCoverageNotes
RFC 2391SupportedLoad sharing using NAT: the destination is rewritten to a member, the source to the SNAT address when configured, and the reply is translated back on the box that holds the session.

f5-bigip reads a bigip.conf file or tmsh list output, including the one-line export form. Partition prefixes such as /Common/ are understood.

FeatureStatusNotes
net vlan, net self, net routeSupportedA self IP lands on its VLAN’s port. A tagged VLAN is a dot1Q subinterface. A VLAN with several interfaces is switched between them. A floating self IP is a secondary address.
ltm virtualSupporteddestination, mask, pool, source-address-translation, persist, vlans-enabled.
ltm pool, ltm nodeSupportedMembers, ratio, load-balancing-mode, session user-disabled.
ltm monitorSupportedhttp (with send and recv), tcp, icmp.
ltm snatpool, ltm snatSupported
Forwarding virtual serversSupportedip-forward virtuals route their range.
Network virtual serversSupportedA mask wider than /32 balances a range.
Reject virtual serversSupportedTraffic is refused.
Self IP port lockdownSupportedA self IP answers only what allow-service lets in, with the net self-allow defaults.
sys, auth, cm, apm, asm, gtm, profiles, iRulesNo effectCarried with the reason and written back. An iRule is one opaque TCL body.
tmsh create / modify / delete of ltm pool, ltm virtual, net self; save sys configSupportedEach write changes the stored bigip.conf text and the box is read again, so the console and an import give the same state. A pool used by a virtual server cannot be deleted.
Other tmsh writesNot modelledThe console says so and changes nothing; configure those through the bigip.conf text.

The device is named by the first label of its hostname; the full name stays in the running config.

A BIG-IP routes only what a listener takes. Traffic that matches no virtual server is refused with a reset or an ICMP unreachable. A virtual server listens only on its vlans-enabled VLANs.

tmsh answers:

CommandStatus
show ltm virtualSupported
show ltm pool, show ltm pool membersSupported
show net route, show net selfSupported
list <module> …Supported
tmsh list … typed from the shellSupported

Member states use tmsh’s words: available (the monitor succeeds), offline (the monitor failed), unknown (no monitor checks it).

citrix-netscaler reads ns.conf. Every line typed at the console is applied at once, as on the box.

FeatureStatusNotes
NSIP, SNIP, VIP (add ns ip)SupportedAn address is placed on the port its VLAN binding names.
add vlan, bind vlanSupportedOn a VLAN with several ports, an address is placed on one of them, and the import says so with a remark:.
add routeSupported
add server, add serviceSupported
add serviceGroup, bind serviceGroupSupportedMembers and monitors.
add lb monitorSupportedHTTP with -respCode and -httpRequest, TCP, PING.
add lb vserver, bind lb vserverSupported-lbMethod, persistence by source IP.
add cs vserverPartialThe default target is used. Content-switching policies are carried, not run.
enable ns feature LBSupportedWithout it, a virtual server exists and stays DOWN.
USIP, USNIPSupported
add ns acl, apply ns aclsSupported
Other linesNo effectCarried with the reason.

The console answers show lb vserver, show service, show serviceGroup, show ns ip, show route and show ns runningConfig. It takes unambiguous prefixes of the show words, such as sh ns run.

f5os and citrix-netscaler-sdx read the platform that hosts the load balancer: the hostname, the management address and gateway, and each port’s admin state and description (F5OS), or the management service’s interface addresses (SDX). The VLAN, LAG and tenant plumbing is carried. These two are read by the importer and by nvctl coverage. They are not offered in the builder.

BIG-IP: a virtual server with a monitored pool
ltm monitor http /Common/http_200 {
defaults-from /Common/http
recv "200 OK"
send "GET / HTTP/1.1\r\nHost: web\r\nConnection: Close\r\n\r\n"
}
ltm pool /Common/web_pool {
members {
/Common/10.2.0.11:80 { address 10.2.0.11 }
/Common/10.2.0.12:80 { address 10.2.0.12 }
}
monitor /Common/http_200
}
ltm virtual /Common/vs_web {
destination /Common/10.1.0.100:80
pool /Common/web_pool
source-address-translation { type automap }
}
NetScaler: a service group behind an LB virtual server
enable ns feature LB
add server web1 10.2.0.11
add server web2 10.3.0.12
add serviceGroup sg_web HTTP
bind serviceGroup sg_web web1 80
bind serviceGroup sg_web web2 80
add lb monitor mon_http HTTP -respCode 200 -httpRequest "GET /"
bind serviceGroup sg_web -monitorName mon_http
add lb vserver vs_web HTTP 10.1.0.100 80 -lbMethod ROUNDROBIN
bind lb vserver vs_web sg_web
  • Monitors run once after the network converges and again after every change. They do not run on an interval, so interval and timeout do not change when a member goes down.
  • iRules, content-switching policies and L7 profiles are carried, not run.
  • The whole-topology reachability analysis lets traffic to available members through a BIG-IP. This overstates direct client-to-member reachability.
  • tmsh writes cover pools, virtual servers and self IPs only. A real box also creates ltm node objects; node commands are not modelled.