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”.
Support level
Section titled “Support level”| Area | Level | Notes |
|---|---|---|
| Virtual servers | Supported | An address and a port. The virtual address answers ARP and ping. |
| Pools and members | Supported | BIG-IP pools, NetScaler services and service groups. |
| Health monitors | Supported | ICMP, TCP and HTTP (status code and receive string), sent as real probes from the load balancer. |
| Balancing methods | Supported | Round robin, ratio, least connections, source hash. The pick is deterministic. |
| Persistence | Partial | Source-address persistence. Cookie and other persistence profiles are carried, not run. |
| SNAT | Supported | BIG-IP automap and SNAT pools, standalone ltm snat; NetScaler SNIP and USIP. |
| No member available | Supported | The load balancer resets the connection. |
| Capture | Supported | Both legs of a connection (client side and server side) are in the capture. |
| Symbolic reachability | Partial | The walk forks a virtual server to its available members. See Known limits. |
| L7 logic | Not modelled | iRules, content-switching policies and HTTP, TCP and SSL profiles are carried. The connection is simulated at L4. |
Standards coverage
Section titled “Standards coverage”| Standard | Coverage | Notes |
|---|---|---|
| RFC 2391 | Supported | Load 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 BIG-IP
Section titled “F5 BIG-IP”f5-bigip reads a bigip.conf file or tmsh list output, including the
one-line export form. Partition prefixes such as /Common/ are understood.
| Feature | Status | Notes |
|---|---|---|
net vlan, net self, net route | Supported | A 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 virtual | Supported | destination, mask, pool, source-address-translation, persist, vlans-enabled. |
ltm pool, ltm node | Supported | Members, ratio, load-balancing-mode, session user-disabled. |
ltm monitor | Supported | http (with send and recv), tcp, icmp. |
ltm snatpool, ltm snat | Supported | |
| Forwarding virtual servers | Supported | ip-forward virtuals route their range. |
| Network virtual servers | Supported | A mask wider than /32 balances a range. |
| Reject virtual servers | Supported | Traffic is refused. |
| Self IP port lockdown | Supported | A self IP answers only what allow-service lets in, with the net self-allow defaults. |
sys, auth, cm, apm, asm, gtm, profiles, iRules | No effect | Carried 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 config | Supported | Each 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 writes | Not modelled | The 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:
| Command | Status |
|---|---|
show ltm virtual | Supported |
show ltm pool, show ltm pool members | Supported |
show net route, show net self | Supported |
list <module> … | Supported |
tmsh list … typed from the shell | Supported |
Member states use tmsh’s words: available (the monitor succeeds), offline
(the monitor failed), unknown (no monitor checks it).
Citrix NetScaler
Section titled “Citrix NetScaler”citrix-netscaler reads ns.conf. Every line typed at the console is applied
at once, as on the box.
| Feature | Status | Notes |
|---|---|---|
NSIP, SNIP, VIP (add ns ip) | Supported | An address is placed on the port its VLAN binding names. |
add vlan, bind vlan | Supported | On a VLAN with several ports, an address is placed on one of them, and the import says so with a remark:. |
add route | Supported | |
add server, add service | Supported | |
add serviceGroup, bind serviceGroup | Supported | Members and monitors. |
add lb monitor | Supported | HTTP with -respCode and -httpRequest, TCP, PING. |
add lb vserver, bind lb vserver | Supported | -lbMethod, persistence by source IP. |
add cs vserver | Partial | The default target is used. Content-switching policies are carried, not run. |
enable ns feature LB | Supported | Without it, a virtual server exists and stays DOWN. |
| USIP, USNIP | Supported | |
add ns acl, apply ns acls | Supported | |
| Other lines | No effect | Carried 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.
Platform layers: F5OS and NetScaler SDX
Section titled “Platform layers: F5OS and NetScaler SDX”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.
Examples
Section titled “Examples”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 LBadd server web1 10.2.0.11add server web2 10.3.0.12add serviceGroup sg_web HTTPbind serviceGroup sg_web web1 80bind serviceGroup sg_web web2 80add lb monitor mon_http HTTP -respCode 200 -httpRequest "GET /"bind serviceGroup sg_web -monitorName mon_httpadd lb vserver vs_web HTTP 10.1.0.100 80 -lbMethod ROUNDROBINbind lb vserver vs_web sg_webTry it
Section titled “Try it”- BIG-IP — a virtual server, a pool and an HTTP monitor
- NetScaler — an LB virtual server with a service group
Known limits
Section titled “Known limits”- Monitors run once after the network converges and again after every
change. They do not run on an interval, so
intervalandtimeoutdo 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 nodeobjects; node commands are not modelled.