This section will outline the initial connection, basic setup and configuration of the APV appliance. The easy to follow setup steps are introduced below.
There are three ways to connect to the APV appliance in order to begin the configuration:
Console (recommended)
SSH
WebUI
If you choose the console connection, first connect the console cable (supplied) to the System Console Port on the APV appliance, and then set up your console as follows:
Table 1-1 Console Setup
| Setting | Value |
|---|---|
| Emulation | VT 100 |
| Baud | 9600 |
| Number of Bits | 8 |
| Parity | No |
| Stop Bits | 1 |
| Flow Control | No |
Open a connection between the console and the APV appliance. Once this connection is opened, users will see the APV appliance prompt and may begin the configuration process.
Once the IP parameters are configured and the SSH service is activated, the APV appliance is prepared for custom configuration. You may access the command line interface (CLI) using SSH connection. Below gives an example.
![]() | Note |
|---|---|
If you require SSH software for Windows, MacOS or UNIX, it is available on-line at http://www.openssh.com. Freeware and links to other support sites can be found here. |
To establish an SSH connection:
Run the SSH program on your workstation
| >> # ssh array@10.3.55.251 |
10.3.55.251 is the APV appliance’s IP address.
After you establish a connection, the APV appliance will ask you for a privilege password.
>> # ssh array@10.3.55.251 |
Upon the first startup, the user will be prompted for login username and password. The default username is "array", and the default password is "admin".
![]() | Note |
|---|---|
You must have the IP information setup and basic network connectivity in order to access the box through SSH. |
This section introduces the connection method via APV WebUI (Web User Interface). It provides graphical user interface for configuring and managing the APV appliance in a visual and friendly way, which greatly simplifies the configuration operation but achieves the same configuration effects as the CLI.
The APV WebUI can:
Improve user experience with fast response time
Maximize the functionality and performance of the APV appliance
Simplify system configuration and management
![]() | Note |
|---|---|
WebUI is disabled by default. To configure and manage the APV appliance via WebUI, please refer to related introductions in the section “Setting up the WebUI”. |
Users can accessed the WebUI by entering the IP address and port number of the appliance in the address bar of the browser.
Example (8888 is the default port number for accessing the WebUI):
| https://192.168.1.200:8888 |
And then press “Enter”. The welcome screen should appear, prompting for username and password. The default username and password is array and admin.
The APV appliance possesses three LEDs in the front panel: one yellow, one green and one blue. The following is the usage description of each LED in the front panel.
Table 1-2 LEDs in the Front Panel
| Color | Meaning | Description |
|---|---|---|
| Yellow | Fault | This light is always off when APV appliance keeps normal. It means the following problems have come out if this light turns on:
|
| Green | Run | The green LED should blink each second when system is idle. CPU activity will be indicated by the blinking of this light; the faster the rate, the higher the CPU activity. |
| Blue | Power | Indication of power and the active state (off|on) of the APV appliance. |
![]() | Note |
|---|---|
If the yellow LED is lighted, please contact Customer Support. You can view system logs to get more information about the problem. |
The APV appliance provides two LEDs for every Ethernet port in the rear panel:
Link LED: indicates the speed mode of the link, which can be 1 Gbps, 10 Mbps or 100 Mbps.
Activity LED: indicates the activity status of the network port.
The following table describes the meaning of each LED on the onboard and add-on NICs of the APV appliance.
Table 1-3 LED for Ethernet Ports in Rear Panel
| NIC Type | LED Name | Description |
|---|---|---|
| Onboard NIC | Link LED | The Link LED has the following indicator colors:
|
| Activity LED | The Activity LED has the following indicator colors:
| |
| Add-on NIC | Link LED | The Link LED has the Yellow indicator color, indicating 1 Gbps, 10 Mbps or 100 Mbps speed mode. |
| Activity LED | The Activity LED has the following indicator colors:
|
In this section, you will be provided an overview of the Command Line Interface (CLI) covering the following topics:
Command Usage Breakdown
Levels of Access Control
The CLI allows you to configure and control key functions of the APV appliance to better manage the performance of your servers and the accessibility to the contents therein.
The APV appliance software has been designed with specific enhancements to make interaction with the Appliance more user friendly, such as Shorthand. Shorthand is the intuitive method by which the Appliance completes CLI commands based on the first letters entered. Other user shortcuts are listed below:
Table 1-4 List of Shortcuts
| CLI Shortcuts | Operation |
|---|---|
| ^a/^e | Move the cursor forward/backward one character. |
| ^f/^b | Move the cursor forward/backward one character. |
| Esc-f | Move the cursor forward one word. |
| Esc-b | Move the cursor backward one word. |
| ^d | Delete the character under the cursor. |
| ^k | Delete from the cursor to the end of the line. |
| ^u | Delete the entire line. |
![]() | Note |
|---|---|
The symbol "^" indicates holding down the Control (Ctrl) Key while pressing the letter that appears after the symbol. |
The APV CLI commands will generally adhere to the following style conventions:
Table 1-5 APV CLI Style Conventions
| Style | Convention |
|---|---|
| Bold | The body of a CLI command is in Boldface. |
| Italic | CLI parameters are in Italic. |
| < > | Parameters in angle brackets < > are required. |
| [ ] | Parameters in square brackets [ ] are optional. Subcommand such as "o", "show" and "clear" commands. |
| {x|y|…} | Alternative items are grouped in braces and separated by vertical bars. At least one should be selected. |
| [x|y|…] | Optional alternative items are grouped in square brackets and separated by vertical bars. One or none is selected. |
For example:
ip address {system_ifname|mnet_ifname|vlan_ifname|bond_ifname} <ip_address> {netmask|prefix}
![]() | Note |
|---|---|
It is recommended to enclose the string-type paramter value by doube quotes to make sure that the appliance can execute the command correctly. |
The APV appliance's Command Line Interface offers three levels of configuration and access to the ArrayOS. The CLI prompt of each level consists of the host name of the APV appliance followed by a unique cursor prompt, either ">", "#" or "(config)#".
The first level is for basic network troubleshooting and is called the User level. At this level, the user is only authorized to operate some very basic commands and non-critical functions such as ping and traceroute. Here is how the User level prompt appears in the CLI.
| AN> |
The second level of administration is the Enable level. Users at this level have access to a majority of view only commands such as "show version". Users in the Enable level may execute commands from both the User and Enable levels. In order to gain access to this level of appliance management, the user must employ the command "enable". Once this command is entered, the APV appliance prompts the user for the appropriate password. If correct password is entered, the CLI prompt will change from "AN>" to "AN#", which means the user is granted access to the Enable level. The default password for the Enable level is null, i.e. users simply need to press "Enter".
AN>enable |
The final access level is the Config level. It is with this level of authority that the user can make changes to the configuration of the box. No two users can access the Config level at the same time. Once a user has gained access to this level, he or she can implement commands in all three levels. To gain access to the full configurable functions of the APV appliance, the user must use the following command:
| AN#config terminal |
Once this command is entered, the CLI prompt will change to:
| AN(config)# |
In the event that Config level is not available because another Config level session has been opened, the administrator can deploy the following command to gain access to the Config level:
AN#config terminal force |
Type "YES" and press "Enter". You will enter the Config level successfully.
For each level the user can type "?" for available commands. For example, entering "AN(config)#slb real ?" will prompt users with all the possible parameters or protocols the CLI will accept with the "slb real" command.
AN(config)#slb real ? [enter] |
This section focuses on introducing the advanced network configurations, including VLAN, MNET, Port Forwarding, NAT, Dynamic Routing and IP Pool functionalities and configurations on the APV appliance.
VLAN (Virtual Local Area Network) is used to logically segment a network into smaller networks by application, or function, without regard to the physical location of the users. Each VLAN is considered a separate logical network. There are two types of VLAN specifications for Ethernet network.
Port-based VLAN
Define VLAN based on port number of the switch. Port-based VLAN is easy to configure but often limited to one single switch.
Tag-based VLAN
Tag-based VLAN allows a group of devices on different physical LAN segments to communicate with each other as if they were all on the same physical LAN segment. In tag-based VLAN, an identifying number, called a "VLAN ID" or a "tag", is written into the Ethernet frame itself, so that switches and routers can use this information to make switching decisions. A tagged frame is four bytes longer than an untagged frame and contains two bytes of Tag Protocol Identifier (TPID) and two bytes of Tag Control Information (TCI).
The APV appliance supports Tag-based VLAN on all interfaces. Tag-based VLAN (also known as Trunking by some vendors) is where a tag is inserted into the Ethernet frame so that switches and routers can use this information to make switching decisions.
The APV appliance's VLAN can work in both the IPv4 and IPv6 network environments. Administrator can view all the IPv4 and IPv6-based VLAN configurations by executing the command "show interface".
For example:
IPv4-based VLAN:
AN(config)#show interface |
IPv6-based VLAN:
AN(config)#show interface |
MNET (Multi-Netting) is used to assign more than one IP address on a physical interface. Here is an example for MNET:
A new Internet site is under development for a small corporation. The network administrator knows that the site will grow in the future but today there is no need for a complex network. A server is installed that will be used as Web server, FTP server, mail server, and the corporation's DNS server. Later, when the use of the network services grows, new servers will be used for each of the functions.
When the time comes to address the current server, the administrator has a choice. A single IP address can be used on the server. Later when the new servers are needed, new IP addresses can be assigned to them.
Another way of assigning addresses can be used. The administrator can assign four IP addresses to the server. Each IP address will match the IP address to be used in the future on the new servers. The administrator now knows what addresses will be used and can create DNS entries for the new devices with the correct addresses. This process of providing more than one IP address on an interface is often called multi-netting.
The APV appliance's MNET can work in both the IPv4 and IPv6 network environments.
Port forwarding allows you to forward any traffic that is destined to an IP/port pair on the APV appliance, to an IP/port pair on the inside network. External clients can directly access the internal servers via an address on the outside subnet.
![]() | Note |
|---|---|
Port Forwarding feature cannot support FTP, users are recommended to use SLB feature instead. |
For example, say that you are running SSH on a real server on the port2 interface subnet, and you want to connect to the server from a client in the outside. To get this information from the outside world to the desired inside IP/port pair, we will have to add a port forward on the APV appliance.
NAT (Network Address Translation) is the translation of an IP address used within one network to a different IP address known within another network. One network is designated the inside network and the other is the outside. NAT is used when you want your real servers on the inside network to access the outside network. Using NAT, all packets will appear as though they came from the APV appliance.
When a client on the inside network contacts a machine on the outside network, it sends out IP packets destined for that machine. These packets contain all the addressing information necessary to get them to their destination.
When the packets pass through the NAT gateway, they will be modified so that they appear to be coming from the NAT gateway itself. The NAT gateway will record the changes it makes in its state table so that it can reverse the changes on return packets and ensure that return packets are passed through the firewall without being blocked.
NAT Traversal of PPTP
The APV appliance supports NAT traversal of PPTP (Point-to-Point Tunneling Protocol).
PPTP is a tunneling mechanism to transfer PPP (Point-to-Point Protocol) frames across intermediate networks. PPTP uses GRE (Generic Routing Encapsulation) encapsulation for PPP payload. However, typically GRE tunnels cannot traverse the NAT device (i.e. the APV appliance). To resolve this problem, a PPTP NAT editor is used on the APV appliance. This editor is an additional software component on the NAT device to perform translation for IP addresses, TCP ports, and call ID.
The APV appliance supports four types of NAT:
Static NAT
Mapping an IP address on one-to-one basis. By configuring static NAT, the APV appliance maps an inside real IP address to a VIP address on the outside. For inbound traffic directed from an outside VIP, the traffic will be forwarded to a corresponding inside real IP without any change in the port number or protocol value. Thus, hosts on the inside network will be directly accessible via the VIP on the port1 interface. The outbound traffic coming from an inside host will use the corresponding outside VIP as the source IP for the outgoing traffic. The port number and protocol remain unchanged. TCP, UDP and ICMP are supported for static NAT.
In static NAT, the computer with the IP address (192.168.10.13) will be always translated into 212.0.0.3:
Port-level NAT
Mapping multiple inside real IP addresses to a single VIP address with a different port number assignment on the port1 interface. By configuring port-level NAT, the group of hosts on the inside network will be directly accessible via the VIP on the port1 interface.
In port-level NAT, the computers with the IP address in the range from 192.168.10.11 to 192.168.10.13 will be translated into 212.0.0.3 with a different port on the outside network:
If a port-level NAT is configured for an inside real IP address, static NAT should take precedence over the regular NAT policy. VIPs used by static NAT should not be used by regular NAT. Also, one static NAT VIP should not map to multiple real IP addresses.
IP pool-based dynamic NAT
Mapping one or multiple inside real IP addresses to an IP pool which contains multiple IP addresses. By configuring IP pool-based dynamic NAT, a group of hosts on the inside network will be translated into via the multiple IP addresses in IP pool.
As shown below, in IP pool-based dynamic NAT, the client IP addresses in the range from 192.168.10.11 to 192.168.10.13 will be translated into 212.0.0.1 to 212.0.0.3 and get connected to the Internet.
Destination IP based NAT
APV supports NAT based on destination IP address. The destination IP based NAT can be performed only when the destination IP address is in the specified network segment and in the same network segment as the route gateway. If the gateway is set to the default value 0.0.0.0, the destination IP/IP pool for NAT and the route gateway should be within the same network segment.
![]() | Note |
|---|---|
For IPv6 address, only TCP and UDP packets can be NATTed and no gateway can be configured. |
Configuration Example via CLI
Configure IP pool
>> AN(config)#ip pool "pool1" 212.16.72.45 212.16.72.55 |
Configure destination NAT
>> AN(config)#nat portdst "pool1" 212.16.72.0 255.255.255.0 500 212.16.72.101 |
Check NAT configurations and statistics
The following two commands can be used to check the NAT configurations and statistics.
Check NaT Table
AN(config)#show nat table |
Check NAT statistics
AN(config)#show statistics nat |
The DNS NAT function is applicable to the scenario where the resolved IPs in the DNS responses returned by internal DNS servers are the IP addresses of internal servers that cannot be publicly accessed. With the DNS NAT function enabled, when receiving DNS responses from an internal DNS server, the appliance will translate the internal resolved IP addresses in the DNS responses to the public IP addresses based on the NAT static entries (configured using the “nat static” command) and return the translated DNS responses to the client. When external clients use the publicly accessible IP addresses for access, the system translates the publicly accessible IP addresses back to the internal resolved IP addresses of internal severs based on the NAT static entries. In this way, external clients can access internal servers. By default, this function is disabled.
Dynamic Routing is a process in which routers automatically adjust to changes in network topology or traffic. It is more robust than static routing. Now, there are several protocols used to support dynamic routing including RIPv1 (Routing Information Protocol version 1), RIPv2 (Routing Information Protocol version 2), OSPFv2 (Open Shortest Path First version 2) and OSPFv3 (Open Shortest Path First version 3), and BGP (Border Gateway Protocol, including multi-protocol extensions).
Dynamic Routing is especially suitable for today's large, constantly changed networks. It improves performance by allowing network routers to adjust to changes in the network topology. And it distributes routing information between routers and chooses the best path for the network, saving money and improving performance.
An IP pool contains multiple IP addresses from one IP segment. Administrators can use the pre-defined IP pools for NAT and SLB configurations.
For the NAT module, IP pool can be defined on the outside interface to realize translation of multiple outgoing IP addresses. This helps increase the concurrent capacity and fully utilize the IP resources. For the SLB module, IP pool can be defined for real server groups. Under the SLB reverse mode, when different real server groups are selected, APV can select different IP addresses in IP pools to connect to real servers. This not only increases the concurrent connection capacity, but also provides a more flexible configuration method for administrators.
APV appliance supports multiple IP pools, and at most 256 IP addresses can be added in one IP pool. The maximum number of IP pools allowed on the APV appliance varies with different system memories. Please see the table below for details.
Both IPv4 and IPv6 addresses can be configured in the IP pool.
When configuring the IP pool, please note:
Each IP pool should be assigned with a unique name in the system.
The IP addresses in one IP pool must belong to the same subnet.
The subnet can be the same between two or more pools.
One IP address can belong to multiple IP pools.
IP segment is composed of continuous IPs, and an IP pool can be composed of multiple IP segments.
IP addresses in IP pool must be legal.
IP addresses which are not covered by any interface subnet are illegal.
Broadcast IP address is illegal.
IP with hostID 0 is illegal.
This section describes link aggregation functionality of the network. Link Aggregation is also called trunking, which can greatly improve network performance and stability.
Link Aggregation or trunking is a method of combining physical network links into a single logical link for increased bandwidth. With Link Aggregation, we are able to increase the capacity and availability of the communication channel between devices. Two or more Gigabit Ethernet connections are combined in order to increase the bandwidth capability and create resilient and redundant links.
The APV appliance supports at most 6 bond interfaces, and at most 12 system interfaces can be added to a bond interface. The bond interface will check the status of the system interfaces. If a system interface becomes down, the traffic processed by this interface will be directed to other working system interfaces in the bond interface.
To add a system interface into a bond interface, the administrator can further set the interface as the primary or backup interface in the bond. Multiple primary or backup interfaces can be set in a bond. When all the primary interfaces in the bond fail, the backup interfaces will take the place of primary interfaces to work.
![]() | Note |
|---|---|
To bind a system interface with a bond interface, the system interface should be configured with no IP address information. If there is IP configuration on the system interface, the administrator needs to remove the IP configuration first. If otherwise, the system will refuse to add the system interface into the bond. |
In addition, the APV appliance also supports configuring MNET or VLAN on bond interface. The bond interface configuration must be performed before configuring MNET or VLAN on it.
The Link Aggregation Health Check is used to determine the health status ("up" or "down") of the bond interface. The Link Aggregation Health Check allows the APV appliance to check every subinterface of the bond interface, and mark the subinterface as "up" or "down". With the Link Aggregation Health Check, the users can use the subinterface which is marked as "up" to transmit traffic.
The Array Clustering function allows you to maintain high availability within a local site. With other options you can also distribute load across multiple boxes within a cluster.
The Clustering function allows two or more APV appliances to be grouped together to form a logical device, which provides scalability and high availability within a local site. Please refer to the following figure.
Clustering can be configured in Active-Standby (A/S) or Active-Active (A/A) mode:
Active-Standby mode – In Active-Standby mode, all VIPs on one APV appliance in the cluster will be the master, and all VIPs on the other APV appliances in the cluster are standby. In this mode, clustering supports fast failover.
Active-Active mode – In Active-Active mode, each APV appliance in the cluster has a different master VIP or cluster ID.
The Fast Failover (FFO) mechanism uses a new additional USB port (fast failover port on the APV appliance mother board) to detect each other's status transparently in a cluster (refer to the following figure). When one system powers off, panics, reboots or its interface losses carrier (link disconnection), all the traffic will be immediately switched to the other. The Clustering function with fast failover mechanism provides higher availability and much faster response time than the typical Clustering.
For traditional clustering, a backup and a master communicate each other's state information through the network. If the backup does not receive the VRRP (Virtual Router Redundancy Protocol) multicast packets from the master within a specified time, it will mandatorily preempt the master. However, because of the network complexity, when something totally unexpected happens, this way may lead to a double-master state.
Discreet Backup mode is designed to prevent a double-master state. In this mode, the system determines whether a state transition is needed for the devices based on their state information detected by a heartbeat cable. This mode makes the state transition more reliable, and any VRRP packet loss will not result in double-master state. The following shows how the Discreet Backup mode works.
After turning on clustering, the device enters into Init state. Then, in order to check the health of the heartbeat cable, the Init device switches to FFO state.
The device collected the health information of the heartbeat cable. If the heartbeat cable is well connected, it will switch to Backup state.
![]() | Note |
|---|---|
Even though the heartbeat cable is disconnected, the device will still switch to Backup state, and clustering will work well. However, the discreet mode is invalid. |
If the backup receives a higher priority VRRP packet, it will switch to Discreet Backup state.
In the following events, the discreet backup will switch to Backup state:
The device in Discreet Backup state receives a lower priority VRRP packet (after the successful state transition, the backup will go on to switch to Master state.).
The device in Discreet Backup state will check the heartbeat cable health. If the heartbeat cable is disconnected, it will log out to Backup state.
In the following events, the backup will switch to Master state:
The backup receives a lower priority VRRP packet (in Preemption mode).
In three continuous broadcast intervals (the default interval is 5 seconds, three intervals are 15 seconds), the backup does not receive the VRRP packet from the master.
If the master receives a higher priority VRRP packet, it will switch to Backup state.
If the heartbeat cable detected the master's NIC is down, the discreet backup will switch to Master state directly.
![]() | Note |
|---|---|
All cluster state transitions can be traced by the command "show cluster virtual transition". |
By default, discreet backup mode is turned off.
To configure the discreet backup mode, the following two commands MUST be configured first to turn on the discreet backup mode.
AN(config)#cluster virtual ffo on |
The APV Clustering function now supports IPv6 VIPs switchover. Both IPv4 and IPv6-based VRRP packets can be processed by the APV appliance.
If the interface for Clustering is configured with both the IPv4 and IPv6 addresses or with only the IPv4 address, then the IPv4-based VRRP packets will be used for communication between the APV appliances. If only the IPv6 address is configured on the interface for Clustering, then the IPv6-based VRRP packets will be used.
![]() | Note |
|---|---|
Note: The VRRP packets are incompatible with each other among different ArrayOS versions. So please use the same ArrayOS version for the APV appliances in a cluster. |
As the network applications develop, customers have higher and higher requirements for the reliability of the network and network appliances. During network planning and design, to improve the reliability of the network, some critical network appliances must have redundancy protection mechanisms. The Clustering function mentioned in the "Clustering" chapter uses the VRRP technology to solve the single-point failure. This chapter will introduce the High Availability (HA) function that newly provided by Array APV appliances. The HA function not only solves the single-point failure, but also provides more policies to ensure the network reliability.
The HA function allows two or more APV appliances to continuously exchange the running status with each other, and keep their configurations synchronized. When an appliance becomes down, other available appliances will take over the application services on the faulty appliance, which ensures the high availability of application services.
Besides, the HA function provides the Stateful Session Failover (SSF) function. With the SSF function, when a service failover occurs, connections on the service will be switched to the new appliance. This avoids the interruption of connections and therefore improves user experience.
The HA function can be deployed flexibly. Besides the Active/Active and Active/Standby deployment scenarios, the HA function can be deployed among multiple appliances to achieve mutual-backup.
The HA domain comprises a group of appliances that provide the HA function. The appliances in the HA domain are called unit. Each HA domain can comprise a maximum of 32 units.
Usually, the service Active/Standby failover on a unit is achieved by using the floating IP address. The same floating IP address can be defined on multiple units. However, the floating IP address on only one unit can be in the "Active" state at the same time.
To ensure the consistency and flexibility of service failover, the Array HA technology groups the floating IP addresses and switches floating IP addresses by group. The floating IP addresses can be switched only after they are added to a floating IP group. At the same moment, the status of all floating IP addresses in the same floating IP group are the same. The status is also called the status of the floating IP group.
The status of a floating IP group is determined by the group priority, failover mode, and results of the health checks related to the group. After the floating IP group is configured correctly, the HA module will the check the running environment of the group based on the configured health check conditions. Based the health check results, the group status can be one of the following two types:
Active/Standby: The results of all health checks related to the group are "Up", indicating the group is ready to provide services. In this case, the group status is "Active" or "Standby". If the group status is "Active", this unit will obtain all the floating IP addresses of the group and provide services. If the group status is "Standby", this unit will provides backup for services and will take over services in case of service failover.
Init: Initial group status. If the result of any health checks related to the group is "Down", the group status is "Init", which indicates that this unit is not qualified for provides services of the group. Even if service failover occurs on the group, this unit cannot take over services.
![]() | Note |
|---|---|
When the group status is "Init", check the group configurations or the health check results to make the group status change to "Active" or "Standby" so that the unit will provide services or backup for services. |
On one unit, multiple floating IP groups can be configured. The status of every groups are independent from each other. If all groups on a unit need to be switched over together, the "Unit_Failover" mode (see the section "Failover Rules") is required.
The floating IP address are configured by using the "ha group fip" or "ha group fiprange" command. For details, please see the ArrayOS APV CLI Handbook.
The HA function supports two group failover modes: non-preempt and preempt modes.
When a floating IP group is enabled on multiple units:
If the non-preempt mode is enabled, the group status on the local unit will not change until a failover occurs.
In the preempt mode, if the group priority on the local unit is higher than those of all peer units, the group status on the local unit will be forcibly switched to "Active". If the group status on a peer unit was "Active" before this, its group status will be forcibly switched to "Standby".
The HA function supports the floating MAC function. With this function enabled, the floating MAC address (configured by using the command "ha floatmac mac") is switched to the interface of the new unit on which the group status is "Active". In this way, after group status switches, the clients will not be aware that the appliance that provides the application services has been changed, because the MAC addresses of the appliances that provide application services before and after group status switch remain unchanged.
![]() | Note |
|---|---|
By default, the floating MAC function is disabled. Before this function is enabled, the HA function must be first disabled by executing the command "ha off". The parameter "interface_name" in the command "ha floatmac mac" determines that the floating MAC function takes effect on the floating IP group with which the interface is associated. The floating MAC addresses configured for different floating IP groups cannot be the same. |
The HA function can be deployed flexibly. Besides the Active/Active and Active/Standby deployment scenarios, the HA function can be deployed among multiple appliances to achieve mutual-backup.
Active/Active deployment scenario: The HA domain comprises two units; on each unit, there are "Active" floating IP groups and "Standby" floating IP groups, the status of which are "Active" on the peer unit. The HA domain comprises two units. On each unit, there is "Active" floating IP groups, and the status of the "Active" group on the peer unit is "Standby".
Active/Standby deployment scenario: The HA domain comprises two units; the status of all floating IP groups are "Active" on one unit and are "Standby" on the other unit.
When the HA function is deployed among multiple appliances to achieve mutual-backup, the HA domain comprises multiple units to provide services or backup for services. Among these scenarios, the "N+1" deployment scenario is commonest one. In the "N+1" deployment scenario, the HA domain comprises N+1 units. Among these units, the group status on N units are all "Active" and all the group status on the remaining one are "Standby".
The units in an HA domain can use the following three types of communication links to exchange their status messages to ensure the high reliability of the communication.
Fast Failover (FFO) Link
Primary Link
Secondary Link
The FFO link is established by directly connecting two HA units' FFO ports through a dedicated FFO cable. Therefore, it can only be used for the Active/Active and Active/Standby deployment scenarios with two units. By default, the FFO link is disabled. The main functions of the FFO link are as follows:
Heartbeat packet transmission: When the HA function is running, the local unit can use the FFO link to send the heartbeat packets to detect the peer unit's status.
Bootup Synconfig: When the FFO link and Bootup Synconfig are both enabled, the local unit can synchronize the HA unit and link configurations from the peer unit.
Fast Failover: When the local unit is down, the peer unit can perform fast VIP failover (within 3 milliseconds) through the FFO link.
The primary and secondary links are also called network links, because both of them connect the two units through ordinary network cables. Only one primary link can be established between any two units, while at most 31 secondary links are allowed between any two units. By defaults, the network links are enabled. After adding multiple units for an HA domain, the system will establish primary link connections between each two units automatically. The main functions of the primary link are as follows:
Heartbeat packet transmission: The local unit can send the heartbeat packets to its peer units through the primary link to detect the peer units' status.
Bootup Synconfig: With both Bootup Synconfig and the HA function enabled, the local unit can synchronize the configurations (except HA link configurations) from the peer units.
Runtime Synconfig: With Runtime Synconfig enabled, when the whitelist configurations of the local unit are modified, the local unit can synchronize the modifications to the peer units via the primary link. When the blacklist configurations of the local unit are modified, the local unit will not synchronize the modifications to the peer units.
The secondary link is optional and just used for heartbeat packets transmission. The administrator has to manually set up the same secondary link configurations on the local unit and the peer units. Please be noted that to establish a secondary link between two units, you need to configure a secondary link with the same ID on the two units respectively.
For example, the IP address of two HA units "u1" and "u2" are 192.168.1.1 and 192.168.1.2 respectively. To establish a secondary link between the two units, the following two commands must be executed on both units:
AN(config)#ha link network secondary u1 1 192.168.1.1 65521 |
After the above configurations are finished on both units, a secondary link with ID "1" is established between "u1" and "u2". The table below shows the differences and similarities among the three types of HA communication links.
Table 15-1 Differences and Similarities Among the HA Links
| Item | FFO Link | Primary Link | Secondary Link | |
|---|---|---|---|---|
| Differences | Connection Method | Directly connected through dedicated FFO cable. | Networked or directly connected through ordinary network cables. | |
| Required Configuration | No configuration required. | The primary link is automatically established after the local unit and peer units join an HA domain. | The same secondary link configurations have to be manually set up on the local and the peer units. | |
| Application Scenario | Only applicable to Active/Active and Active/Standby scenarios. | All scenarios. | ||
| Way of Joining the HA Domain | Enable the FFO link and the HA function. | 1. Configure the IP addresses of the local unit and the peer units | N/A | |
| Similarities | 1. All the three types of HA links can be used to transmit heartbeat packets. The HA units send the heartbeat packets to exchange their health check conditions and group status. | |||
The HA function is capable of performing health check on the system status and network condition in an HA domain. Once any failure is detected by health check and it matches one of the pre-configured failover conditions, the corresponding failover action will be taken. Usually, the system will select another unit which is with the highest priority among the available units and change the status of the floating IP group enabled on that unit to be "Active" forcibly. To do this, HA provides failover rules to control the switchover of group status.
Failover rules are defined by associating failover conditions with failover actions. Failover conditions indicate the monitoring status on system hardware or software, such as network interface status, CPU utilization and so on. Failover actions are the operations to be performed by the system when the associated failover conditions occur. HA provides three failover actions:
Group_Failover: Switch over the status of the floating IP group. For this action, the system will select a new unit based on the health condition and group priority, and change the status of the floating IP group enabled on that unit to be "Active" to take over the services.
Unit_Failover: Switch over the status of all the floating IP groups enabled on a unit.
Reboot: Switch over the status of all the floating IP groups enabled on a unit, and then restart the unit.
HA supports three types of health checks:
Predefined health check: HA has predefined network connectivity check mechanism (PORT_1~PORT_32) to detect network interface faults and network disconnections between nodes. By default, when a network interface is faulty, the system will perform Group_Failover. Administrators can modify a failover action associated with the predefined health check condition.
![]() | Note |
|---|---|
Only when the network connections of all interfaces in a bond interface become down, will the "Group_Failover" action be taken for the floating IP group to which the IP addresses of the bond interface belong. For the units who provide failover support for the same floating IP group in the HA domain, the failover rules of the floating IP group configured on the units should be exactly the same, including the name of the health check condition in failover rules. For the units who provide failover support for "Unit_Failover" in the HA domain, the failover rules of the "Unit_Failover" configured on the units should be exactly the same, including the name of the health check condition in failover rules. |
System health check: HA supports the reuse of the system health check as failover conditions. Administrator can define the following health check conditions for HA failover.
Hardware:
CPU overheat health check condition
SSL card health check condition
Software:
CPU utilization health check condition
Network condition:
Gateway health check condition
In some complex application environments, more complicated failover rules are required. For example, theoretically, in the environment with a bond interface deployed, only when the network connections of all interfaces in the bond interface become down will failover action be taken. However, in practical application, it is required to take failover action as long as the network connection of one interface becomes down. To meet this kind of complicated applications, HA further introduces the concept of health check condition group (vcondition). A vcondition comprises multiple health check sub-conditions. A sub-condition can be a real health check condition or another vcondition, which further comprises sub-conditions. The logical relationship among multiple sub-conditions can be either "AND" or "OR". To apply vcondition to the above application, administrators can first define health check conditions for each of the network interfaces in a bond interface, and combine these conditions into a vcondition by setting the logical relationship to "OR". Then, associate the vcondition with some failover actions.
Self-defined health check script: The system supports the import of self-defined health check scripts from an SCP or TFTP server as well as the export of the scripts for modification.
The HA function provides configuration synchronization to simplify configurations on units and ensure the consistency of configurations on all units in an HA domain. HA supports two kinds of configuration synchronization: Bootup Synconfig and Runtime Synconfig. The two configuration synchronization functions can be both enabled.
Bootup Synconfig is to synchronize the configurations of the peer unit to the local unit after the local unit logs into the HA domain. To synchronize the configurations of peer unit to the local unit, the following conditions must be met:
The "synconfig peer <peer_name> <peer_ip>" command should be configured on both peer unit and local unit.
In addition, the value of the "peer_name" parameter should be identical with the value of the "unit_name" parameter specified in the "ha unit <unit_name> <ip_address> [port]" command.
The local unit can log into the HA domain in two methods:
FFO Login: The unit logs into the HA domain through the FFO link.
Network Login: The unit logs into the HA domain through the network link.
To use the FFO Login method, administrators need to perform the following operations on the local unit:
Execute the "ha link ffo on" command to enable the FFO link.
Execute the "ha synconfig bootup on" command to enable the Bootup Synconfig function of HA.
![]() | Note |
|---|---|
After the FFO link and the Bootup Synconfig function are enabled, the local unit will start to synchronize configurations about HA units and links from the peer unit. |
Execute the "ha link network on" command to enable the network links.
Execute the "ha on" command to enable the HA function.
To use the Network Login method, administrators need to perform the following operations on the local unit:
Execute the "ha unit" command to add the local unit and the peer unit.
Execute the "ha synconfig bootup on" command to enable the Bootup Synconfig function of HA.
Execute the "ha link network on" command to enable the network links.
Execute the "ha on" command to enable the HA function.
![]() | Note |
|---|---|
In Bootup Synconfig, only the configurations saved by executing the command "write memory" can be synchronized. |
Runtime Synconfig is to synchronize the add/deletion/change of configurations on the local unit to other units in the same HA domain automatically while the HA is being running. This ensures that the configurations on all units in one HA domain are always the same.
![]() | Note |
|---|---|
To synchronize the configuration changes from the local unit to the peer units, please make sure that Runtime Synconfig is enabled on both the local unit and the peer units |
The Stateful Session Failover (SSF) function can be applied to both the Active/Active and Active/Standby HA scenarios. With SSF enabled, the information about the TCP and UDP connections established on the "Active" floating IP group will be updated to all "Standby" floating IP groups in real time. Once any failover action is taken, all the existing TCP and UDP connections will not be interrupted because the connection information has been updated to the new "Active" unit by the SSF function. However, if the SSF function is disabled, the existing TCP and UDP connections will be interrupted.
The SSF function supports TCP, UDP, FTP and IP types of SLB applications as well as NAT applications. It can be enabled or disabled per virtual service.
![]() | Note |
|---|---|
To ensure the SSF function works well, please make sure that the HA-related configurations on all the units in one HA domain are the same. It is recommended to use Runtime Synconfig while the SSF function is enabled. The SSF function uses a stable network link between two HA units to transmit SSF session information. If the network link used for SSF goes down, session information cannot be exchanged between two units. If a group failover occurs subsequently, the existing connections might be reset. |
The HA function provide logging function. By default, the HA logging function is disabled. If the HA function is enabled, the logging function will be enabled too. If the HA function is disabled, the logging function will be disabled too.
The HA logging function allows administrators to set the level of the HA logs that the system generates. Eight levels HA logs are supported: emerg, alert, crit, err, warning, notice, info, and debug. Once the level of HA logs is specified, the log messages lower than this level will be ignored, that is will not be recorded in the system. The default log level is info. HA logging records only HA internal information, the changes of floating IP groups and units will be recorded in Syslog.
A single system image (SSI) domain is a group of APV appliances that appears to be one single system. Logically, the multiple appliances in SSI deployment are regarded as one appliance.
The SSI feature allows the administrators to provide one virtual service by deploying multiple parallel APV appliances, to meet higher performance demand.
SSI has the same architecture as HA, and therefore has the same basic concepts including domain, unit, floating IP group and communication link.
![]() | Note |
|---|---|
The SSI feature and HA feature cannot be deployed at the same time. |
The deployment of SSI requires switches with high bandwidth and LACP support. SSI supports two-arm server load balance.
![]() | Note |
|---|---|
The SSI feature only supports SLB reverse proxy mode. |
As shown in Figure 6-1 SSI Work Flow, the data flow in SSI deployment is:
The data packets sent by the client arrive at switch1;
The switch1 forwards the data packets to an APV appliance (because the APV appliances in the SSI domain have the same virtual service IP address and floating MAC configuration, the data packets will be sent to certain APV appliance according to certain algorithm of the switch, hash based on the source IP and port, for example);
The APV appliance forwards the data packets to the real servers through switch2;
The real server sends the response data packets to switch2;
The switch2 sends the data packets to the APV appliance (the data packets can be returned to the APV appliance originally performed the processing, because the APV appliances have different IP pools for proxy IP);
The APV appliance sends the data packets to the client.
As shown in the above picture, the following configurations need particular attention:
Add the switch1 ports connecting with the APV inbound ports in a bond.
Add the inbound ports on every APV appliance into a bond.
Add the switch2 (intranet switch) ports connecting with the APV1 outbound ports in a bond.
Add the switch2 ports connecting with the APV2 outbound ports in a bond.
Add the outbound ports of each APV appliance in a bond.
Assign different IP pools to each APV as the proxy IP.
![]() | Note |
|---|---|
The SSI feature only supports SLB reverse proxy mode. The inbound ports of the SSI units can only serve as service port instead of management port, that is they cannot work for SSH link establishment, WebUI link establishment or system upgrade. If separate management for each unit is required, please assign unique management port to each unit. |
The SSI switch failover function provides standby switch for the switch between the client and the SSI domain, and the switch failover will happen when the current switch fail to provide service. When the connection between the APV appliance and the switch is abnormal, or certain condition defined by the administrator is met, switch failover will take place according to the defined rule.
The failover support for the switch between the client and the SSI domain provided by the switch failover function allows the virtual service can be switched by the SSI units to the standby switch, when the current switch undergoes electricity or connection interruption, thus guaranteeing the service continuance.
The configuration required by the SSI switch failover function is as follows:
The following configurations of switch failover need particular attention:
The current switch and the standby unit have the same port configuration, including bond configuration, LACP protocol enabling and flow distribution setting.
Add the APV ports connecting with the switches into two floating IP groups, that is, add port1 and port2 of APV1 and APV2 into group1, and add port3 and port4 of APV1 and APV2 into group2.
SLB (Server Load Balancing) allows you to distribute load and traffic to specific groups of servers or to a specific server. The APV appliance supports server load balancing in Layers 2-7 of the OSI network model. Layer 2 SLB is based on network interfaces. Layer 3 SLB works on IP addresses. Layer 4 SLB is mostly concerned with port based load balancing. Layer 7 is used when you want to perform load balancing based on URLs, HTTP headers or Cookies. The basic steps for setting up SLB are:
Define the real servers.
Define a group load balancing method.
Add real servers to the group.
Define a Virtual IP to listen for requests.
Bind the group balancing method to the Virtual IP.
The real server, the VIP and the virtual service are the fundamental components of SLB deployment.
The real server is an application server hosting varied applications or services. It processes the requests from the client side.
The VIP in general is a public IP address that can be accessed from the external clients. As an entrance, it receives and forwards external requests, and sends the processed results from the real servers back to the client side.
For the Layer 4 and Layer 7 SLB, the virtual service is commonly represented with a VIP/port pair and can be accessed by the external clients to get their target network resources. For example, if a client wants to access some Web resources by a predefined VIP or a Web site name (with DNS), all the requests from this client will go through the VIP and be sent out to different real servers by the APV appliance hosting the VIP and real servers. With the virtual service, the internal network architecture and backend real servers are hidden from the external clients by only exposing the VIP address.
The remainder of this chapter will cover these steps and cover some examples of Layer 2, Layer 3, Layer 4 and Layer 7 load balancing strategies.
The following figure is a logical overview of load balancing using the APV appliance.
The APV appliance allows several methods of load balancing. We will briefly discuss certain methods below and situations where you would want to use them. Later in the chapter we will go over and setup each metric in detail.
Table 7-1 SLB Methods
| SLB Methods | Description |
|---|---|
| Round Robin (rr) | If we have three servers in Group 1with two in Group 2, and chose round robin as our metric, each request would follow the real servers in order [1,2,3, 1, 2, 3…] for Group 1 and [4,5, 4, 5…] for Group 2. |
| Least Connections (lc) | This metric tells SLB to select the real server with the fewest number of active connections. |
| Shortest Response (sr) | The server with the shortest response time will get the next request. Using this metric you can intermix fast servers with slow servers and the fast servers will get more hits initially. As load increases, and response time increases and the slower servers will start to field more requests. |
| Persistent IP (pi) | This metric ties the source IP of the request to the real server processing the request. An example application for this metric is when doing e-commerce transactions and a specific server needs to maintain state about the client's transaction. Keep in mind that if a large ISP deploys a Mega-Proxy, one real server could service thousands of requests. (A Mega-Proxy is used to proxy all client requests from a single IP.) |
| Persistent Cookie (pc) | Persistent cookie is used to associate a cookie name/value pair with a single real server on your backend. When setting up cookie based policies keep in mind that you need a default policy for requests that do not have cookies in the HTTP header. |
| Insert Cookie (ic) | Dynamically inserts cookies to allow ArrayOS to maintain persistence to a server. |
| Rewrite Cookie (rc) | Rewrite Cookie rewrites server side cookies on the fly thereby allowing the backend servers to maintain persistence to a client. |
| Proximity (prox) | This method is based on SDNS proximity info and used by redirect policy only. It directs SLB to select the real server, which has lowest proximity distance with the request IP. |
| SNMP (snmp) | This method is based on the real server's SNMP (Simple Network Management Protocol) MIB information regarding the server's status and availability, for example, the server's CPU status and memory usage. |
| Embed Cookie (ec) | It embeds some information in the server side cookies, allowing the backend servers to maintain persistence to a client. |
| Hash Query (hq) | It keeps the persistence of the session by hashing the specified tag value in the query of HTTP requests, and must work with persistent url policy. |
| Least Bandwidth (lb) | This method directs traffic to the real service with the least bandwidth based on the bandwidths and weight of real services. |
Additional Load Balancing methods include: Persistent URL (pu), Persistent Hostname (ph), Hash Cookie (hc), Hash Header (hh), SSL SID (sslsid), Hash IP (hi), Consistent Hash IP (chi), Consistent Hash RADIUS User Name (radchu), Consistent Hash RADIUS Session ID (radchs), Individual Session Persistence (persistence), SIP Call ID (sipcid), SIP User ID (sipuid), SIP CallID Persistence Session (sipcidps), SIP UserID Persistence Session (sipuidps) and Persistent TCP Option (pto).
For more information on these additional SLB methods, please consult the Array APV CLI Handbook.
Policies are used to tie virtual services to groups. By using policies, administrators may control how load balancing decisions are made by different layer policies rules (Layer 2-7). A virtual service is bound with a group by a policy. A single group can be shared among different virtual services. In the following pages we will cover policies in depth.
SLB supports multiple policy types (see the table below):
Table 7-2 SLB Policies
| Basic Policy | Persistent Policy | QoS Policy |
|---|---|---|
| Persistent URL | QoS Cookie |
Different types of policies have different priorities. Currently, multiple APV appliance SLB policies can be configured for one SLB virtual service and the APV appliance will route requests based on the first matched policy with the highest priority. The following is the order of priority that APV appliance SLB will follow:
Table 7-3 SLB Policy Priority
| Priorty | Policy |
|---|---|
| a | Redirect |
| b | Static |
| c | DNSSEC |
| d1 | QoS Clientport |
| QoS Network | |
| Persistent URL | |
| Rewrite Cookie | |
| Insert Cookie | |
| Persistent Cookie | |
| QoS Cookie | |
| QoS Hostname | |
| QoS URL | |
| QoS Body | |
| QoS Dnsdomain | |
| Regex | |
| Header | |
| Hash URL | |
| d2 | RADIUS Username |
| RADIUS Session ID | |
| Filetype | |
| QoS Diameter | |
| h | Default |
| i | Backup |
For Layer 4 SLB, only three SLB policies (QoS Network, QoS Clientport, and QoS Dnsdomain) can be used beside the Static, Default and Backup policies.
For backward compatibility, the default policy precedence is the same as before. To configure specific precedence and associate it with specific virtual service, the system administrator can use the following CLI commands:
slb policy order <order_template_name> <policy_type> <precedence>
slb virtual order <virtual_service> <order_template_name>
SLB Policy Nesting is the mechanism for different policies to be nested to perform server load balancing.
In traditional SLB policy mechanisms, one policy is defined to bind a virtual service with a group. For example, in the command "slb policy qos url policy1 vs1 group1 'news' 1", the virtual service vs1 and group1 are associated by policy1. The requests that match the policy1 will be forwarded to group1.
In SLB Policy Nesting mechanism, a new object "vlink" is defined for policy nesting. A virtual service or a vlink can be associated with a group or another vlink via policies. The requests will be distributed to a group or a vlink according to the policies. For a request sent to a vlink, the system will distribute the request to a group or another vlink associated to the vlink according to the policies. Therefore, the requests will be distributed to a group associated to a vlink only when they match two or more nested policies.
Limitations of SLB Policy Nesting:
Some policies cannot be nested, such as static, redirect, filetype and external policies.
The icookie, rcookie, persistent cookie, persistent URL and QoS Diameter policies can only associate a virtual service or a vlink with a group, but cannot be associated to a virtual service or a vlink with another vlink.
To simplify the configuration, the policy nesting layer should be less than or equal to 3. If more than 3 layers are configured, the system will return a 503 error.
Only HTTP and HTTPS protocols are supported.
The SLB module of the APV appliance introduces a new, generally applied, and session ID-based method for session persistence. This persistence method can either operate independently on Layer 4/7 SLB or work in collaboration with an existing Layer 7 SLB persistence policy. In the latter case, the existing policy extracts the session ID and the persistence method implements the session persistence.
The persistence method maintains a mapping table to keep track of each session ID and its associated real server. Furthermore, the persistence method dynamically processes the timeout information for each session ID to ensure independence of each session.
The persistence method supports the following types of session IDs:
ip: This session ID type is the client IP address that the persistence method extracts from the client request.
ip+port: This session ID type is the client IP address and port number that the persistence method extracts from the client request.
string: This session ID type is a specified string that the persistence method either extracts from the client request (or real server response) itself or obtains through extraction by an existing SLB policy. You may also specify an offset and ID length for more granular control of this session ID type.
Direct extraction by the Persistence Method
When used independently, the persistence method can directly extract the following session ID types from the client request or real server response:
Client IP address or IP address and port number from the client request.
A specified string from the HTTP URL query, HTTP cookie, HTTP header, or HTTP body field in the client request.
A specified string from the HTTP cookie, HTTP header, or HTTP body field in the server response. In this case, you also need to configure the APV appliance to obtain the matching specified string from the HTTP URL query, HTTP cookie, HTTP header, or HTTP body field in the client request.
![]() | Note |
|---|---|
When multiple session IDs of the string type are configured, the APV appliance will obtain the session ID in priority-descending order from the HTTP URL query, HTTP cookie, HTTP header, and HTTP body. |
Indirect extraction through an existing SLB Persistence Policy
In collaboration mode, the persistence method can indirectly obtain the session ID through the following types of SLB persistence policies:
Header
Persistent cookie
Persistent url
Qos body
![]() | Note |
|---|---|
For details about the Session ID matching mechanism with the SLB persistence method and SLB persistence policy, please contact Array Customer Support for related documents. |
For more information about the collaboration of the persistence method with existing SLB persistence policies, refer to example "Persistence Method Collaborating with an SLB Persistence Policy".
The persistence method can dynamically processes the timeout information of each session ID using one of the following modes:
idle: If the APV appliance receives no new client requests within the specified "idle" time period, the APV appliance will terminate the client's session and clear its associated session ID.
duration: If the specified "duration" of time has passed since a client's session was created, the APV appliance will terminate the client's session and clear its associated session ID regardless of the arrival of any new requests
![]() | Note |
|---|---|
To dynamically manage the timeout information of session IDs, you need to specify the management mode to ensure that the APV appliance clears outdated session IDs and records and new ones. |
In addition, the persistence method can statically reserve a session ID. Requests matching a statically reserved session ID will be consistently sent to the same real server.
The APV appliance provides four types of health checks:
Basic health check
Basic health checks determine the application, service or server availability (Up/Down) status using a specified protocol format. APV supports basic health check types that include ARP, ICMP (ping), TCP, TCPS, DNS, HTTP and HTTPS. The default health check is assigned with the individual real server (for example, representing any backend physical or virtual server in the server farm) configuration. APV will perform basic health checks on the IP/port pair of the real server to decide the real service availability. This is also called main health check.
Additional health check
Many times application or service infrastructure components are spread across multiple server types that need to be run simultaneously. For example, an application might require Web servers, application servers, and database servers to be run simultaneously. In this case determining the health of one server is not sufficient, and health checks must be performed on the entire suit of servers for determining the health of entire application infrastructure. In addition to the basic health check, multiple diverse health checks can be configured for one real server. The AND or OR relationship for multiple additional health checks can be set. APV supports configuring additional health check name, which helps administrators easily configure and identify the additional health check. See the "health relation" command.
Script health check
There are many applications and non-standard protocols (in addition to standard TCP/IP based protocols) that follow specific request/response sequence for communication purposes. To support custom application availability check, customers can make use of scripted health check. APV offers a generic application aware health check that runs over a TCP or UDP connection. It determines an application's health by exchanging messages with the application in the specified format. Multiple application messages, request/response sequences can be scripted for emulating normal application communication between APV and applications.
Two health check types are available, "script-tcp" and "script-udp" for building generic script health checks. Script health checks support the following advanced application health checks: FTP, SMTP, LDAP, RADIUS, POP3, DNS, and TELNET applications. Additional application health check can be built by importing application request and response into the APV appliance.
Group health check
The group health check is used to determine the health status of each real service of the associated group. The group health check includes ICMP, TCP, TCPS, HTTP and HTTPS health check. In application, administrators can configure the group health check to obtain the status of each real service without configuring health check for each real service, which simplifies the configurations of the health check.
Besides, the group health check supports the Server Load Balancing in the open cloud environment. For more details about how to configure the group health check in the open cloud environment, contact Array Customer Support for related documents.
![]() | Note |
|---|---|
The relationship of the basic health check and the group health check is "AND". |
Health Check allows the APV appliance to perform diagnostic observations on the performance of Web servers and Web server farms associated with each APV appliance. These observations on the performance health of the real server will allow the appliance to know how the servers are performing and which backend servers can best handle the incoming client requests.
ICMP Health Check
It is a limited health check method that simply sends an ICMP echo (ping) to the server. If the server responds with an ICMP reply then the server is marked as "up". The server is marked as "down" otherwise. This does NOT check for the running service or the quality of the service.
TCP Health Check
TCP health check simply opens a TCP connection to a specific port of the real server. If that connection fails, the server will be marked as "down". The server will be marked as "up" if the TCP connection succeeds. This health check does not indicate if the service is actually functioning. For checking if a particular service in question is functioning correctly, a specific health check must be used (for example, HTTP health check for Web applications).
For Layer 2 SLB, the TCP health check method needs to configure a health check reflector on another APV appliance. The reflector will open a port and listen upon the port, and responds to health check requests. In this way, the health check process can go through the real server and check the entire link status. If the reflector is able to respond to the health check request, the real server will be marked as "UP", else marked as "DOWN".
TCPS Health Check
TCPS health check provides an SSL health check for SLB real servers. If the SSL handshake fails, the server will be marked as "down". If the SSL handshake succeeds, the server will be marked as "up". This health check function will check for the availability of the real service by opening an SSL connection to a specific port of the real server or defaults to 443.
HTTP Health Check
The basic built-in HTTP health check opens a TCP connection and sends an HTTP request with one of the HTTP methods (such as GET, POST, etc.) pre-defined in the health request table. The APV appliance expects the health response as defined in the response table. The default index chosen to reference request/response table is 0. If the response is not satisfied with the conditions configured in the response table, the server will be marked as "down", otherwise it is marked as "up".
HTTPS Health Check
HTTPS Health Check provides an SSL health check for real servers. If the SSL handshake succeeds, the APV will send a pre-defined HTTP request with proper method format to real servers. If the response from the real server is the same as the expected response, the real server will be marked as "up"; otherwise, it is marked as "down". When using HTTPS Health Check, users should pre-define HTTP requests/methods and corresponding expected responses for matching purposes. When using client certificates, the imported client certificate must be encoded by DER rules during client authentication.
Script-TCP Health Check & Script-UDP Health Check
Script-TCP and script-UDP are provided for the generic script health check. They run over TCP and UDP connection respectively. Only when the "hc_type" is set to these two types, the health check list can work while doing health check.
Script-TCPS Health Check
Script-TCPS Health Check provides an SSL health check for HTTPS real servers. It works the same way as script-TCP Health Check once the SSL handshake succeeds.
DNS Health Check
DNS health check is one of the built-in application health checks for DNS service that uses scripted health check. DNS health check opens a UDP connection and sends a DNS request to a destination DNS server, and the APV expects a special DNS response. The DNS request and response are not configurable because they are unchangeable. If the required conditions are satisfied, then server will be marked as "UP", otherwise, the server will be marked as "DOWN".
Radius-Auth Health Check & Radius-Acct Health Check
Radius-Auth health check and Radius-Acct health check are provided for checking the availability of the RADIUS servers.
LDAP Health Check
APV supports health check on commonly used LDAP servers like Windows AD, OpenLDAP and SunOne Directory, to better meet the customers' needs for health check on LDAP binding and search operations.
The LDAP additional health check is only supported for TCP real servers.
RTSP-TCP Health Check
RTSP health check opens a TCP connection and sends an RTSP "OPTIONS" (Get available methods on the streaming server) request to a RTSP real server. If the real server responds with any of the RFC-defined RTSP status codes, then the server will be marked as "up", otherwise, it will be marked as "down".
SIP-UDP & SIP-TCP Health Check
SIP health check opens a UDP or TCP connection and sends a SIP "OPTIONS" request to a real server. This request is used to ask the SIP server for the list of SIP methods it supports. The response may contain a set of capabilities (i.e. audio/video codecs) of the responding SIP server. If the real server responds with RFC-defined methods, the server will be marked as "up", otherwise, it will be marked as "down".
Database Health Check
Database health check checks the health status of real database servers by using a series of health checks between the APV appliance and the real database servers. The APV appliance first establishes a TCP connection with the real database server, and then it logs into the real database server and send a database query to the real database server. If the real database server responds with an expected response, it will be marked as “up”; otherwise, it will be marked as “down”.
Currently, the system supports two types of database health checks: MySQL and MsSQL. MySQL database health check includes MySQL-DB and MySQL-DBS, and MySQL-DBS is an SSL-based MySQL database health check. MsSQL database health check includes MsSQL-DB and MsSQL-DBS, and MsSQL-DBS is an SSL-based MsSQL database health check.
When the method of health check is set as script_tcp or script_udp, HC checker and HC checker list can work while the APV appliance does health check. An HC checker is defined as one transaction of health check. It consists of sending one message and receiving one response. A list of HC checkers can compose an HC checker list, which is identified by the HC checker list name.
Below are the commands used to define the HC checker and HC checker list:
health checker <checker_name> <request_index ><response_index> [timeout] [flag]
health list <list_name>
health member <list_name> <checker_name> [place_index]
health app {real_name|add_hc_name} <list_name> [frequency] [hc_localip] [hc_localport]
By default ArrayOS defines an HTTP health table of HTTP requests and HTTP responses to be used by the HTTP health check. The default index inside the health table for HTTP requests and responses is "0, 0". The "show health request" command shows the table of requests defined. Likewise "show health response" shows the responses.
For our example model:
AN(config)#health on |
Index 0 (0 in the health request table results with the following request being sent to the real server):
| HEAD / HTTP/1.0 |
The response needed from the real server is:
| 200 OK |
You may change the response header to accommodate your network. Refer to your Web server's documentation on what valid HTTP responses you may use.
By default, we use a HEAD request as the health check. A HEAD request will only ask for the HEADER information for the object being requested. If we were to use the GET request, you will get the entire page back as a response. If you have a large site or content that is fairly large you should choose the HTTP response that will cause the least amount of overhead.
Changing the HTTP Health Request/Response
You can define your own HTTP requests and the responses to be used by the HTTP health check. For example, you may simply change the request to get a CGI script that returns an HTTP status 200 OK when the database server is up and a 404 NOT FOUND when the database server is "down". Below are the commands to use to perform this task as well as an example from our network model.
health request <request_index> <request_string>
health response <response_index> <response_string>
health server {real_name|add_hc_name} <req_index> <res_index>
For our network example:
Define your own HTTP request.
| AN(config)#health request 1 "GET /cgi-bin/dbstatus.pl" |
Set the request to index 1, the response to index 0 for server2http.
| AN(config)#health server server2http 1 0 |
![]() | Note |
|---|---|
Index 0 in health response means returning 200 OK. |
The health check provided by the ArrayOS starts with simple TCP health checks and allows you to perform advanced health checks by utilizing different health requests and responses.
Keyword Health Check for Web Page
HTTP health check supports keyword matching for the specific real server response Web page. The HTTP health check daemon will check the real server's health by searching a keyword in the server's response content. If the keyword is found, this health check is successful. Otherwise, this health check fails.
Let's begin a configured example for this enhancement:
The real server is 10.3.16.188:88
The Web page is index.txt
The key word is arrayadmin
Add a real service with HTTP health check
| AN(config)#slb real http rs 10.3.16.188 88 1000 http 3 3 |
Configure HTTP health check
AN(config)#health request 1 "GET /index.txt HTTP/1.0\r\n\r\n" |
Associate the configured HTTP health check with the real service
| AN(config)#health server rs 1 1 |
![]() | Note |
|---|---|
Keyword HTTP health check can only support ASCII string search in the Web page, but not support double-byte keyword (for example, simplified Chinese, traditional Chinese). |
The TCP-based SLB virtual service health check supports external devices to detect the availability of TCP-based virtual services defined in APV appliances.
How it works
If all real services corresponding to TCP-based SLB virtual service go down, the status of the virtual service will be marked as "DOWN" and the TCP connection attempting from outside will NOT be responded to so that the other devices will know the unavailability of the detected virtual service.
![]() | Note |
|---|---|
If WebWall is turned on for the interface ("port2" for most cases) that SLB real services are using, you will need to add an access list rule to allow traffic between the APV appliance and the real backend servers. If you also have health check turned on for SLB real services, you will need to add corresponding access list rules to allow the health check replies. For example, if the health check type is ICMP, it needs to add the corresponding access list rules to allow ICMP echo reply messages. Otherwise, the SLB real services will fail. |
If all real servers configured in an APV appliance are marked as DOWN by Health Check, other APV appliances will take over the traffic. As long as at least one real server configured in an APV appliance is marked as UP by Health Check, the APV appliance will take over the traffic again if its mode is preemptive.
For transparent transmission, the APV appliance will direct the connections toward specified real servers directly when forwarding requests from clients. That is, the server is aware of the client's IP address and therefore knows which client accesses the server.
The client sends a request to a virtual IP on the APV appliance.
The APV appliance switches the destination address of the request into real server IP.
The APV appliance locates the optimal server available based on the policy and health check conditions, and then forwards the request to the server.
After receiving the request, the server sends the response to the APV appliance.
The APV appliance switches the destination address of the request into real server IP.
The APV appliance sends the response to the client.
Advantages of transparent transmission:
The server can record the IP addresses of the clients.
Limitations of transparent transmission:
Structure/router design requires responses from source servers to pass through the APV appliance;
Structure/router design requires responses from source servers to pass through the APV appliance;
Because requests have different IPs, the system performance cannot be enhanced through the connection pool.
Reverse proxy transmission is used to forward requests to internal servers. The APV appliance can distribute the requests evenly among internal servers to ensure server load balancing. As the name of reverse proxy mode indicates, the reverse proxy mode enables clients to access internal servers, whereas the normal proxy transmission enables clients to access external servers. The following figure shows how reverse proxy transmission works:
The client sends a request to a virtual IP on the APV appliance.
The APV appliance locates the optimal server based on the policy and health check conditions, and then forwards the request to the server.
The server sends the response to the APV appliance.
The APV appliance sends the response to the client.
Advantages of reverse proxy transmission:
One-armed deployment is applicable.
Connection pool technology can be used to enhance system performance.
Limitations of reverse proxy transmission:
The IPs of the client that have accessed the server cannot be recorded.
Solution: The APV appliance can insert a field "X-Forwarded-For" into the header of the HTTP request of the client to trace the client IP.
Triangle Transmission is specially designed for low-inbound/high-outbound applications such as Video On Demand (VOD), and to accommodate requests in the quickest and most efficient manner. In addition to "reverse" and "transparent" modes, a new system mode "triangle" is added for this new feature.
For Triangle Transmission, when selecting a proper real server from a group, administrators can use Round Robin (rr), Persistent IP (pi), Hash IP (hi), Consistent Hash IP (chi), Least connections (lc) and SNMP (snmp) group methods. In triangle mode, only TCP, UDP and IP virtual services are supported.
The following shows how the Triangle Transmission works.
Client sends a request to a virtual IP on the APV appliance via the router.
The APV appliance forwards the request to a real service.
The real service returns a response to the router directly. Since the default route IP on the real service is set to be port2 interface IP of the router, the response will be sent to the router directly.
The router forwards the response to the client.
In this packet flow, the request will pass through the APV appliance, but the response will be sent from the real server to the client directly without hitting the APV appliance.
![]() | Note |
|---|---|
Triangle transmission SLB health check is based on the system IP addresses of the real servers, not the loopback IP addresses. This means when health check is up, the real service might not be available. |
In ArrayOS, UDP packets are distributed according to the four-tuple information. This means the UDP packets with the same source IP and port will be regarded as the same UDP flow and then be distributed to the same real server. However, under some circumstances (for example, RADIUS applications), this method might cause uneven load balancing. To solve this problem, packet based UDP SLB can be used to support single UDP packet based application and more evenly spread load to different real servers.
What is SIP (Session Initiation Protocol) Load Balancing
APV SIP Load Balancing intelligently distributes and balances SIP traffic among multiple SIP servers and provides application persistence based on the unique SIP caller ID to ensure application and transaction integrity. Additionally, to ensure reliability and availability of SIP services, SIP load balancing is able to perform advanced health checks on SIP devices, routing SIP clients away from unstable or unreliable devices. SIP load balancing is critically important for successful, scalable VoIP telephony environments.
SIP Load Balancing performs stateful inspection of SIP messages to scan and hash calls based on a SIP Call-ID header destined for a SIP server. Stateful inspection means that a packet is inspected not only for its source and destination information found in the header, but also packet contents found at Layer 7 (the Application Layer). Once the APV appliance has identified the Call-ID which identifies a specific SIP session, it sends future messages from the same Call-ID to the same SIP server.
A SIP proxy server is implemented to NAT the session packets originated from inside real servers. By SIP NAT, real servers can reside in a private network and do not have to own global IP addresses.
![]() | Note |
|---|---|
A SIP proxy server is the server controlling the management of connections and IP addresses in a SIP-enabled network. |
To synchronize SIP registration information, SIP SLB supports the broadcasting of SIP registration requests to all the SIP register servers in the same SLB group.
What is RTSP (Real Time Streaming Protocol)
RTSP (Real Time Streaming Protocol) is an application layer protocol which is used for real-time media traffic. Normally, an RTSP session includes two channels: control channel for control signals and data channel for media stream. The control channel is a TCP connection while the data channel can be either TCP or UDP connection.
What is RTSP Load Balancing
The use of streaming audio and video is growing among enterprises for applications such as eLearning and corporate communications. RTSP streaming delivers higher performance, and is more secure and easier to manage than HTTP streaming implementations. APV appliance enables companies to optimize streaming media resources by intelligently and transparently switching requests to RTSP media servers or caches.
RTSP Load Balancing only supports filetype, default, backup and static policy. In filetype policy, the real service is selected based on the file extension names. For example, client request for "rtsp://mp3.xyz.com/test.mp3" will hit the RTSP SLB group corresponding to "mp3" filetype.
Particularly, RTSP Load Balancing supports two working modes: "REDIRECT" and "Dynamic NAT".
Redirect mode
The media stream will not pass through APV appliance. After APV appliance retrieves Request-URL from the client request, it will select a real service according to the file type, and then send a "REDIRECT" response to inform the client to access the selected real service.
Dynamic NAT mode
Media stream will pass through APV appliance. After APV appliance selects a real service according to the policy, it will retrieve the media transport information from the negotiation between the client and the real service. And then implement dynamic NAT for media streaming packets according to their requirement. All connections (TCP and UDP) of one RTSP session will be closed when the control connection tears down.
Layer 2 IP/MAC-based SLB allows you to balance network traffic without changing the network packet's source IP/MAC address and destination IP/MAC address. It is widely used in virus or mail scanner, content filter and triangle transmission.
Different from higher layer SLB (Layer 4 and Layer 7 SLB), the traffic to be balanced in Layer 2 does not need to access a particular IP address or "IP address + Port" pair defined in the interface (normally the port1 interface) on APV appliance for balancing purpose. As long as the incoming traffic can be routed to APV appliance's interface with defined Layer 2 virtual services (for example, virtual services are defined on APV appliance's port1 interface and APV appliance port1 interface's system IP address is set as the gateway of client machines), it will be balanced among a pool of Layer 2 real services according to configured load balance algorithms.
Layer 2 SLB feature has its own definitions for virtual service, real service, group method, health check and policy:
Virtual service is defined by IP address. Internally, the associated input interface will be found;
Real service can be defined by either IP or MAC address. Internally, the associated output interfaces will be discovered;
Layer 2 SLB only supports default policy;
Layer 2 SLB Health Check: Layer 2 SLB real services support all the health check methods available in Layer 4/Layer 7 SLB health check. Only the additional health check can be configured to the Layer 2 SLB real services.
The supported groups methods are rr (Round Robin) and hi (Hash IP).
Layer 3 IP based SLB balances all the TCP and UDP traffic from one global virtual IP address to multiple real servers. Unlike Layer 4 SLB, both the virtual service and real service in Layer 3 SLB are defined by single IP address without port number. Layer 3 SLB real services only support ICMP health check. Without specifying port number, Layer 3 SLB works for a much wider range of administrators, especially in the following scenarios:
Cross-port applications: some session protocols bind multiple connections together, one is the initial connection, others could be generated from dynamic ports
Cross-protocol applications: most streaming protocols use UDP connection for data transferring and TCP connection to transfer control information between the same client and server.
Port range SLB allows us to define a virtual service with a range of ports so that ArrayOS will listen for connections on all the ports in the range and distribute the requests to a group of real services that can be configured with either a port range or a static port.
Port range virtual service has lower priority than Layer 4 and Layer 7 virtual services. That means, if an input request hits both a Layer 4/Layer 7 virtual service and a port range virtual service, the Layer 4/Layer 7 virtual service will be matched first.
Port range real service and static port real service can not be configured in one group. Port range real service and port range group can only be associated with port range virtual service. However, port range virtual service can associate with static port real service. Port range SLB does not work for "FTP" type real services and virtual services.
The health check type of a port range real service can only be "none" or "ICMP" because its port is 0. If other health checks are needed, additional health checks can be used:
AN(config)#slb real http rs1 10.3.0.20 0 1000 none |
APV provides session persistence to balance RDP (Remote Desktop Protocol) traffic load among a terminal server farm by using Terminal Services Session Directory Service. This enables a user to disconnect a session with running applications, whether intentional or because of a network failure, and then reconnect at a later time to the same session, with the same running application.
Terminal Services Session Directory Service is a database that keeps track of sessions on terminal servers in a load-balanced farm. The database maintains a list of the user names that are associated with the session IDs that are connected to the servers in a load-balanced terminal server farm. It can either reside on a server that is separate from the terminal servers in the farm, or be hosted on a member of the terminal server farm.
When a client sends an authentication request to APV appliance, APV appliance will forward the request to one of the terminal servers in the farm, for example TS1. TS1 prompts the client with a login screen. After the client enters the user name and password, TS1 validates the user name and password, and queries Session Directory database with the user name. If a session with the same user name already exists on one of the terminal servers in the farm, for example TS2, Session Directory will send the information (including TS2's IP address and port number) to TS1, and TS1 will send a routing token with the TS2's IP address and port to the client and drop the connection with the client. After that, the client sends APV appliance another authentication request with the routing token. APV appliance will reconnect the client to TS2 according to the IP address and port in the routing token.
In RADIUS (Remote Authentication Dial-In User Service) Load Balancing solution, when the RADIUS request packets go through the APV appliance before they are forwarded to the backend RADIUS servers, the APV appliance will first check the username or session ID field in the RADIUS request packets and employ relevant load balancing methods ("radchu" method for the "username" field and "radchs" method for the "session ID" field) to create a mapping between the RADIUS request packets and the hit RADIUS server. And then, APV will check if a connection with the RADIUS servers exists. If the connection exists, the RADIUS packets will be sent to that backend RADIUS server; otherwise, the connection will be created and saved (the connection is time limited and will be removed as soon as it times out) and then the request will be sent to the RADIUS server via the connection. In this way, the APV appliance can implement even load balancing among the multiple RADIUS servers.
DirectFWD is a new Layer 4 SLB function by utilizing a multi-thread and non-lock architecture based on a multi-core system. This new architecture has maximized the advantage of the multi-core system. Compared with the traditional Layer 4 SLB, DirectFWD provides remarkably better Layer 4 SLB performance. This function is controlled by the command "slb direcfwd {on|off}".
DirectFWD supports both the IPv4 and IPv6-based TCP packets.
Since only limited functions are implemented in the new architecture now, the DirectFWD function still has some limitations as follows:
It is only used for TCP SLB, and temporarily only supports static, default and backup policies. All the Layer 4 SLB methods, except Shortest Response Time, are supported. (Please refer to the policy-method supporting matrix to check the details about the Layer 4 SLB methods).
It cannot be used in different MTU environments. In other words, all the interfaces must have the same MTU; otherwise, the connection may fail to handle the big packets.
It cannot handle IP fragments.
![]() | Note |
|---|---|
1. The more the interfaces used for DirectFWD, the better the performance. 2. DirctFWD is not supported in Triangle Transmission SLB. |
DirectFWD Syncache
DirectFWD syncache effectively and efficiently protects the real servers from SYN flood DOS attacks. When DirectFWD syncache function is on, all the SYN packets from a client will not be forwarded to a real server directly. The APV appliance will hold the useful information in those SYN packets firstly, and then send a SYN-ACK packet to the client. After that, the APV appliance will receive an ACK packet from the client and setup a TCP connection with the real sever.
![]() | Note |
|---|---|
When the DirectFWD syncache function is on, clients cannot negotiate MTU with real servers. |
By default, when a real service is disabled or deleted, the APV appliance SLB shall not send session requests to the real service that has been disabled. However, for the real services using cookie-based group method and load balancing polices, such as pc (Persistent Cookie), ic (Insert Cookie), rc (Rewrite Cookie), and the session ID-based and generally-applied persistence method, SLB will still send the existing session requests that match the cookie to the disabled real service to ensure service persistence. While the new session requests will be sent to other working real services. This function is called "Graceful Shutdown", as shown below.
The following gives an example of Graceful Shutdown:
| AN(config)#slb real disable service |
After disabling the real service named "service", users can check the status of the real service by using the command "show statistics slb real".
AN(config)#show statistics slb real http service |
As shown in the above output information, the status of "service" is displayed as "INACTIVE(waiting)", which means the real service is still processing connection requests, i.e. it is in the process of "Gracefully Shutdown". During this process, the session requests that match the cookie will still be forwarded to this real service, while the connection requests from new clients will be forwarded to other working real services.
After a while, users can run the command "show statistics slb real" again to check the status of the real service.
AN(config)#show statistics slb real http service |
As shown in the above output information, the status of "service" now is displayed as "INACTIVE(suspend)", which means it is shut down completely.
After a real service is enabled, it might receive a large number of requests immediately before getting fully prepared to work. The sudden increase of traffic on the real service might lead to failure of the service. To solve this problem, the APV appliance supports warm-up activation of real services. Administrators can set recovery time and warm-up time for real services.
Right after a real service is enabled, no connection requests will be sent to the real service for a period of time. This period is called "recovery time". When the recovery time ends, the real service enters the "warm-up time". In this period of time, firstly only a small amount of connection requests are forwarded to the real service for processing. The number of the requests will be increased gradually. When it reaches the maximum number allowed for the real service, it means the real service works normally.
Administrators can use the command "show statistics slb real" to check the status of a real service. As shown in the following output information, the status of the real service in "recovery time" is displayed as "UP(softup)". No connection requests will be sent to a real service in "softup" status.
AN(config)#show statistics slb real http service |
This chapter will cover the concepts and strategies of using the Reverse Proxy Cache to better enhance the overall speed and performance of your Web servers. Using the cache function will improve website performance and throughput, and will also reduce server load by caching heavily requested data in the temporary memory of the APV appliance.
The Reverse Proxy Cache is located right in front of Web servers. It receives the requests from clients all over the Internet and responds to these requests by working with the Web servers.
The client sends a request to the APV appliance, requesting for a file on the Web server. The APV appliance will forward the request to the cache module for processing.
If the requested content has been cached on the APV appliance and the cache does not expire (cache hit), the APV appliance will send the file copy to the client directly without forwarding the request to the Web server. If the requested content does not exist in cache (cache miss), the request will be forwarded to the Web server for processing.
The Web server responds to the APV appliance with the requested content.
The APV appliance responds to the client with the requested content, and caches the content. Future requests for the same content will be responded directly from the APV appliance cache module.
Future requests for the same content will be responded directly from the APV appliance cache module.
The default behavior of the cache is to send the cached object to the client while the cache is being filled with new objects.
The maximum size of the cache objects depends on different system memories of the APV appliances. See the table below:
Table 8-1 Max Size of Cache Object
| System Memory | Max Size of Cache Object |
|---|---|
| 4GB | 10240KB (10MB) |
| 8GB | 20480KB (20MB) |
| 16GB | 40960KB (40MB) |
Compared with traditional cache functions, the Reverse Proxy Cache, without making any compromise on the overall stability and performance, provides a smarter, high-efficient and personalized configuration platform for administrators to more flexibly adjust the APV appliances to addressing the demands of different websites. This helps administrators improves the response ability of the websites, reduces the load of Web servers and delivers perfect user experience of visiting the websites.
The Reverse Proxy Cache function is mainly featured with the following advantages:
Improved performance
The cache function is an independent module in the ArrayOS. Turning it off will not impact the functionality of other modules in the system.
The cache module strictly controls its memory consumption under 25% of the total system memory.
The ability to cache both the compressed and uncompressed contents allows the APV to send compressed contents to appropriate clients without having to involve the compression engine. This greatly enhances compression throughput.
Outstanding stability
If any error occurs to the cache module, administrators can turn off the module immediately, which will not affect the running of other system functions.
All cache tuning parameters now use the "cache filter" mechanism, and the global control parameters are reduced. This new approach gives administrators more flexibility and control and minimizes confusion during configuration.
Intelligent monitoring
The APV process monitor also monitors the cache (in addition to the reverse proxy). If it detects any issues (or if the cache process crashes), it will restart the cache after appropriate cleanup.
Flexible configuration
Since the cache is a separate process, it can be updated in place using the "component update" mechanism.
The statistics from "show statistics cache" are more detailed and are designed to allow administrators to get data that would help them understand how the APV is making caching decisions. This should help the customer tune the APV or their website to optimize performance.
The "cache filter" mechanism reduces global control parameters, which increases the precision and flexibility of command control by administrators.
The cache can now be switched on/off on a per-virtual site basis.
The HTTP traffic falls into two categories: cacheable contents and non-cacheable contents. The cacheability of contents depends on the information within the HTTP headers. The reverse-proxy cache will check the request and response HTTP headers to make cache decisions. If the response for a request is cached, the subsequent request for the same object will be served from the cache instead of from a backend server.
By default, if there are no HTTP headers that restrict caching for an object, the reverse-proxy cache will cache the content. The following are the more popular cache-control headers that will control if the content will be cached and if so, for how long.
Cache-Control: public
The public keyword indicates that any available and configured cache may store the content.
Cache-Control: private
This directive is intended for a single user and will not be cached by the reverse-proxy cache.
Cache-Control: no-cache
This directive lets the reverse-proxy cache know that it can cache the content and can only use the cached content if the appliance first re-validates the content with the origin server.
Expires: Tue, 30 Oct 2010 14:00:00 GMT
This header tells the cache when the content will expire and when to re-fetch it from an origin server when the request for that object is made. In this example it tells the cache to make the content expire on Tuesday, 30 Oct 2010 14:00:00 GMT.
Any content with Cache-Control directives which allow caching of the content will always be cached. If the content does not contain a Cache-Control directive, then it will always be cached and will not be re-validated until it is manually flushed from the cache. If the content does not contain an "Expires" header, after it expires, the APV appliance will re-validate the content with the origin server and update the content when it is requested next time.
The Cache Filter mechanism helps administrators realize more precise control over the cache module with simple cache configurations, such as whether to cache the contents requested by a specific host or not and how long the cached content will live. The priority of the control parameters in cache filter is higher than the peer parameters defined in the Cache-Control header.
The following gives several application examples of cache filter. For detailed configuration examples, refer to the section Reverse Proxy Cache Configuration and the Array APV CLI Handbook.
Cache all "*.jpg" files from the host "www.xyz.com", and the TTL of cache contents is 200,000 seconds.
Only cache the image files in common formats, such as JPG, GIF or BMP.
For the cache objects from the same host, some can be cached by following the cache filter rules, and others can be cached by following the definitions in the cache control header, such as the TTL of the cache.
Ignore the specific type of query strings in the request URL when looking up for an object in cache.
Three types of cache expiration time are involved during the cache process:
The expiration time defined by the "Expires" field in the HTTP header;
The global cache expiration time configured via the command "cache settings expire {hh:mm:ss|seconds}";
The TTL time specified by the “ttl” parameter in the command "cache filter rule <host_name> <url> {cache|urlquery|ttl}".
The priorities of the three expiration times are as follows:
The expiration time configured in "cache filter rule" will be used first.
If the "ttl" parameter is not specified, the global expiration time specified by "cache settings expire" command will apply.
For the cache content that does not match any cache filter rule, the expiration time defined in the HTTP header will be applied.
If no "Expires" field is available in the HTTP header to define the expiration time, just follow the configuration of "cache settings expire".
The DNS SLB mechanism used by APV appliance supports DNS cache feature. Upon receiving any type "A" or "AAAA" DNS responses, which are mapping of host names to IP addresses, APV will save them in SLB DNS cache. Then, when the APV appliance receives any DNS requests for the cached "A" or "AAAA" records from clients, the appliance will directly send back the "A" or "AAAA" responses to the clients. If there is no records in cache that hit the requests, the APV appliance will communicate with the remote DNS server(s) directly, and then save the server responses in cache for responding to the coming requests.
The APV appliance supports in-line compression of HTTP objects. By employing this licensed feature, administrators may maximize throughput to the desired site while end-users will experience quicker download speeds. This chapter describes the configuration of HTTP Compression capabilities which are part of ArrayOS platform. Configuration of HTTP Compression functionality can be divided into two main parts. The first part is the basic configuration and the second part is dedicated to advanced configuration.
HTTP compression, otherwise known as content encoding, is a publicly defined way to compress textual contents transferred from Web servers to browsers. HTTP compression uses public domain compression algorithms to compress XHTML, JavaScript, CSS, and other text files at the server.
By default, the following MIME types can be compressed by the APV appliance for all the browsers:
Text (text/plain)
HTML (text/HTML)
XML (text/XML)
The following MIME types are able to be compressed by the APV appliance for certain browsers via "http compression policy useragent" command:
Java Scripts (application/x-javascript)
Cascade Style Sheets (text/css, application/x-pointplus)
Cascade Style Sheets (text/css, application/x-pointplus)
PPT documents (application/powerpoint)
XLS documents (application/MSExcel)
DOC (application/MSWord)
Now, if Administrators do not want to compress some textual contents from Web servers to browsers, they are able to configure a url-exclude HTTP compression rule for the client request via the the "http compression policy urlexclude" command. If the URL of the client request matches the rule, the textual content from the Web servers to the browsers will not be compressed even if HTTP compression is on.
Not all files are suitable for compression. For obvious reasons, files that are already compressed, such as JPEGs, GIFs, PNGs, movies, and bundled contents (for example, Zip, Gzip, and bzip2 files) are not going to be compressed appreciably further with a simple HTTP compression filter. Therefore, you are not going to get much benefit from compressing these files or a site that relies heavily on them.
![]() | Note |
|---|---|
For the data files in very small size, the size of the compressed data may be larger than the original data size. |
Now that the basic SLB and Caching are setup on the APV appliance, we can set up the SSL (Secure Sockets Layer) acceleration functionality to provide secure transactions with your clients. The SSL Accelerator works by decrypting the secure traffic and passing the unencrypted traffic to the original server. In an alternative mode the SSL accelerator can be used to decrypt the secure traffic, apply traffic management (SLB, caching, etc.) processing on decrypted traffic and then encrypt it back before passing it to SSL enabled origin server.
The main role of SSL is to provide security for Web traffic. Security includes confidentiality, message integrity, and authentication. SSL achieves these elements of security through the use of cryptography, digital signatures, and certificates.
SSL protects confidential information through the use of cryptography. Sensitive data is encrypted across public networks to achieve a level of confidentiality. There are two types of cryptographic algorithms, symmetric and asymmetric algorithms.
In symmetric algorithms, encryption and decryption employ the same secret key, which is negotiated by the communicating parties. The secret key may be intercepted by the third party during its delivery. Therefore, in actual applications, the secret key is always encypted by an asymmetric algorithm and then delivered. Commonly used symmetric algorithms include DES and AES.
Asymmetric algorithm is also known as public key algorithm. It employs a pair of keys, which are the public key and the private key. The public key is open, while the private key is privately owned. Data encrypted by the public key can only be decrypted by the private key. Asymmetric algorithms supported by the APV appliance include RSA, ECC and SM2 algorithms.
RSA algorithm
RSA is the most commonly used asymmetric cryptography. Its security increases with the key length’s increase. Gradual increases in the RSA key length has slowed down the algorithm’s computation speed.
ECC algorithm
Compared with the RSA algorithm, the ECC algorithm provides the same level of confidentiality with shorter key lengths.
SM2 algorithm
SM2 is a public key algorithm based on elliptic curves, published by the Office of State Commercial Cryptography Administration (OSCCA) of China. Beginning with SM2v1.1, SM2 employs the dual-certification system. An SSL server needs two certificates, a signature certificate and an encryption certificate. The corresponding key pairs are the signature key pair and the encryption key pair.
Signature key pair and signature certificate
The signature certificate is used for identity verification during SSL handshakes.
In the process of server certificate verification, the server will send the two SM2 certificates via the Server Certificate message, and use the private key of its signature key pair to do signature in the Server Key Exchange message. The client will confirm the server’s identity by using the public key of the server’s signature key pair to verify the signature.
If the server needs to verify the client’s certificate, the client will send the two SM2 certificates via the Client Certificate message and use the private key of its signature key pair to do signature in the follow-up Client Certificate Verify message. The server will confirm the client’s identity by using the public key of the client’s signature key pair to verify the signature.
Encryption key pair and encryption certificate
The encryption certificate is used to generate the premaster secret key.
In the ECC key exchange mode, the client will generate the premaster secret key, encrypt it using the public key of the server’s encryption key pair, and then send it to the server via the Client Key Exchange message. The server will use the private key of its encryption key pair to obtain the plaintext of the premaster secret key.
In the ECDHE key exchange mode, after the client sends the Client Key Exchange message to the server, each of the communicating parties will generate the premaster secret key by themselves.
Digital signature is calculated using irreversible signature algorithms. Validating a digital signature helps confirm the identity of the information sender or signer and whether the information was distorted during transmission. In SSL handshake process, SSL virtual host and real host support the negotiation of RSA and ECC signature algorithms and the validation of RSA-signed and ECDSA-signed digital certificates.
In Ephemeral Elliptic Curve Diffie-Hellman (ECDHE) key exchange section, the server will send the ephemeral public key via the Server Key Exchange message which carries a digital signature. The client will validate the digital signature to confirm the reliability and integrity of the public key.
In client certificate authentication section, the client will send a digital signature to the server via the Certificate Verify message. This digital signature is to enable the server to confirm the identity of client. The server will use the public key in the client certificate to validate the digital signature.
The following table lists the signature algorithms supported by SSL virtual hosts and real hosts.
Table 12-1 Signature Algorithm
| Type | SSL Virtual Host | SSL Real Host |
|---|---|---|
| RSA Signature Algorithm | SHA256RSA | SHA1RSA |
| ECDSA Signature Algorithm | SHA256ECDSA | SHA1ECDSA |
Certificates contain information identifying the user/device. They are digital documents that will attest to the binding of a public key to an individual or other entity. They allow verification of the claim that a specific public key does, in fact, belong to the specified entity. Certificates help prevent someone from impersonating the server with a false key. SSL uses X.509 standard certificates to validate identities. X.509 standard certificates contain information about the entity, including public key and name. A certificate authority then validates this certificate.
Table 12-2 X.509 Certificate
| Name | Meaning |
|---|---|
| Version | Indicates the certificate version number. Certificate format varies by versions. |
| Serial Number | Indicates the certificate serial number, which is unique among all certificates issued by an authority. If a certificate is revoked, its serial number will be added to the Certificate Revocation List (CRL). |
| Issuer | Indicates the authority that issues the certificate. Generally, a certificate is issued by a Certificate Authority (CA). |
| Valid from | Indicates the valid start date of the certificate. |
| Valid to | Indicates the valid expiration date of the certificate. |
| Subject | Indicates the person or enterprise identified by the certificate. |
| Public Key | Indicates the public key of the certificate holder. |
| Signature Algorithm | Indicates the signature algorithm used to generate the signature. |
| Thumbprint, Thumbprint algorithm | Indicates the thumbprint and thumbprint algorithm. Thumbprint is a hashed value of the entire certificate calculated by the thumbprint algorithm and then encrypted by the private key of the CA. |
The APV appliance supports three types of digital certificates: RSA, ECC and SM2 certificates. Digital certificates are issued by CA. To obtain a certificate from CA, individuals or enterprises need to send Certificate Signing Request (CSR) to CA, and then import and activate the certificate. The APV appliance supports generation of RSA and , ECC and SM2 CSRs for a virtual host.
Generating a CSR
To apply for an RSA certificate, execute the “ssl csr” command to generate an RSA CSR.
To apply for an ECC certificate, execute the “ssl ecc csr” command to generate an ECC CSR.
To apply for an SM2 certificate, execute the “ssl sm2 csr” command to generate an SM2 CSR.
CA will send back the desired certificate via Email. After receiving the certificate, administrators need to import it using CLI commands.
Importing a certificate
RSA and ECC certificates are imported using the “ssl import certificate” command.
For an SM2 certificate application, CA will issue a signature certificate, an encryption certificate and an encryption key. The encryption key may be plaintext or encrypted (digital envelop). The signature certificate is imported by using the “ssl sm2 import signcertificate” command; the encryption certificate is imported by using the “ssl sm2 import enccertificate” command; the plaintext encryption key is imported by using the “ssl sm2 import enckey” command; and the digital envelope is imported by using the “ssl sm2 import encevp” command. Before the digital envelop is imported, the signature key must be imported.
Activating a certificate
All RSA, ECC and SM2 certificates are activated by using the “ssl activate certificate” command. It allows you to activate all types of certificates at a time or only the specific type of certificate.
The number of certificates that can be imported and activated for a virtual host and a real host is different.
For a virtual host:
If it is associated with one or more domain names, you can import three RSA certificates and three ECC certificates for each domain of the virtual host. Each domain of it can have one active RSA certificate and one active ECC certificate.
If it is not associated with any domain name, you can import a maximum of three RSA certificates and , three ECC certificates and three pairs of SM2 certificates for it. It can have one active RSA certificate, and one active ECC certificate and one pair of active SM2 certificates.
For a real host, you can import three RSA certificates and three ECC certificates. It can have one active RSA certificate and one active ECC certificate.
![]() | Note |
|---|---|
The APV appliance running FIPS HSM does not support ECC and SM2 algorithms. In FIPS HSM environment, each virtual host can have one active RSA certificate for each of its associated domain. Each real host can have only one RSA certificate. |
Client Certificate Authentication
In client certificate authentication, a client sends its certificate to a server for authentication upon receiving a Client Certificiate Request message from the server. The APV appliance supports using the Array certificate parser (Array Networks patent) to verify the client certificate in a fast way.
When the APV appliance functions as an SSL proxy client (SSL real hsot), if client certificate authentication is enabled for the SSL real host, it will send its certificate to the real service. In this scenario, if the SSL real host has both RSA and ECC certificates activated, it will select the certificate to be sent according to the following principles:
If RSA certificate type is specified in the Client Certificate Request message, the RSA certificate will be sent to the real service.
If only ECC certificate type is specified in the Client Certificate Request message, and the negotiated cipher suite is of the “ECDHE…” type, the ECC certificate wil be sent to the real service.
If only ECC certificate type is specified in the Client Certificate Request message, but the negotiated cipher suite is not an “ECDHE…” one, the SSL real host will reset the connection.
When the APV appliance functions as an SSL proxy server (SSL virtual host), if client certificate authentication is enabled for the SSL virtual host, it will request SSL client to provide a certificate for authentication.
SNI provides the SSL authentication for each website running on an SSL server by using the domain name of the website. The SNI function provide the SSL authentication for multiple websites on an SSL server by associating multiple domain names with a virtual host instead of assigning an IP address for each website and associating a unique virtual service, which simplifies virtual service configurations and lessens IP address exhaustion.
When an SSL host is configured in compliance with specific requirements, SSL acceleration supports HTTP/2 running over TLS.
For an SSL virtual host, it must meet the following configurations to support running HTTP/2; otherwise, HTTP/1.1 will be used:
The SLB virtual service associated with the virtual host is enabled with HTTP/2.
The virtual host supports TLSv1.2.
The virtual host supports at least one of these cipher suites: ECDHE-RSA-AES128-GCM-SHA256, ECDHE-RSA-AES256-GCM-SHA384, ECDHE-ECDSA-AES128-GCM-SHA256 and ECDHE-ECDSA-AES256-GCM-SHA384.
For an SSL real host, it must meet the following configurations to support running HTTP/2; otherwise, HTTP/1.1 will be used:
The SLB real service associated with the real host supports and is enabled with HTTP/2.
The virtual host supports running HTTP/2 (see the three conditions for HTTP/2 support by virtual host stated previously).
The real host supports TLSv1.2.
The real host supports at least one of these cipher suites: ECDHE-RSA-AES128-GCM-SHA256, ECDHE-RSA-AES256-GCM-SHA384, ECDHE-ECDSA-AES128-GCM-SHA256 and ECDHE-ECDSA-AES256-GCM-SHA384.
![]() | Note |
|---|---|
In the deployment scenario where HTTP/2 runs over TLS, SSL renegotiation must be disabled. Use the “ssl globals renegotiation off” command to disable it globally, and the “ssl settings reneg <virtual_host_name>” command to disable it on individual virtual host. |
The SSL interception function intercepts SSL traffic, which is encrypted, and sends the decrypted data to security devices such as the firewall, IPS and IDS. This helps prevent attacks, intrusion and data exfiltration aroused by insecure information encrypted in SSL data. In the SSL interception process, the APV appliance can cooperate with security devices set up in L2 or L3 mode. The basic SSL interception process is as follows:
The ingress node receives and decrypts SSL traffic coming from clients and sends the decrypted data to the security device.
The security device performs inspection on the decrypted data, filters out those containing security risks and sends the inspected data to the egress node.
The egress node forwards the data to the real destination.
Based on the distribution mode, the ingress and egress nodes can be deployed in the integrated mode and the distributed mode.
Integrated mode: The ingress and egress nodes are integrated on one APV appliance. That is, one APV plays the role of both the ingress and egress nodes.
Distributed mode: SSL interception is implemented on two APV appliances. One plays the role of the ingress node, and the other plays the role of the egress node.
The APV appliance implements SSL interception by simulating server certificates. Administrators need to install the certificates trusted by clients on the ingress node to obtain and decrypts SSL traffic coming from the clients. How to install the simulated certificates depends on whether the actual network uses the PKI system.
On the networks where PKI is not deployed, the CA certificate and key must be generated on the ingress node. The client browser must also have the CA certificate installed. When the ingress node obtains the server certificate, it will re-sign the server certificate using the generated CA certificate to create a simulated certificate, and then use the private key corresponding to the public key in the simulated certificate to decrypt SSL traffic coming from clients.
On a network where PKI is deployed, the ingress node and client browsers must have an intermediate CA certificate and key installed. This intermediate CA certificate must be issued by a CA that is trusted by the client. When the ingress node obtains the server certificate, it will re-sign the server certificate using the imported intermediate CA certificate, and then use the private key corresponding to the public key in the simulated certificate to decrypt SSL traffic coming from clients.
Each simulated certificate will be cached in the system and set with a timer. When the timer ends, the simulated certificate will be removed out of the cache. If a simulated certificate is hit again before the timer ends, the timer will be renewed.
The domain list function can be enabled or disabled by the “ssli domainlist {on|off}” command. When it is disabled, the system intercepts all SSL traffic by default. When it is enabled, the domain list function employs two types of domain lists to define SSL traffic that needs to be intercepted or not.
Bypass domain lists: SSL traffic that accesses the domain strings or domain names contained in this domain list is allowed to pass through in encrypted format without being inspected by a security device.
Interception domain lists: SSL traffic that accesses the domain strings or domain names contained in this domain list must be decrypted and then inspected by a security device before passing through.
A virtual host that has a domain list applied will perform the bypass or interception operations based on the type of the applied domain list. A virtual host can have only one type of domain lists applied.
For simplification purposes, the domain list function also supports the application of a single bypass or interception domain string to a virtual host via the “ssli domainlist apply item” command. For example, when only SSL traffic accessing domain name “xyz*” needs to be intercepted, you can run the following command to apply “xyz*” as an interception domain string to the virtual host. It is not necessary to add the domain string to an interception domain list and then apply the list to the virtual host.
![]() | Note |
|---|---|
When the ingress node attempts to obtain the server certificate, if the server requires the client certificate or if the SSL handshake encounters a failture, the SSL traffic will also pass through without being decrypted. |
As stated in the “Domain List” section, the SSL interception module supports manual configurations of interception domain lists to define SSL traffic to be intercepted. Administrator can also manually add bypass domain lists to define SSL traffic to be bypassed. The domain list function applies if clients access only a few types of websites and the manual configuration workload is light.
If the application scenario accommodates accesses to various types of websites, traffic filtering using domain lists configurations requires the administrator to manually configure a great number of domain lists. In addition, the administrator cannot fully understand the internet. Clients’ accesses to some websites may be unnecessarily intercepted. In this case, it is recommended to configure the website classification function to achieve intelligent URL filtering. Via website classification, the APV appliance supports recognition of 82 website categories. For details about these categories, please refer to: http://www.brightcloud.com/tools/change-request-url-categorization.php.
Using this function, administrators do not need to define a traffic filtering policy for every website to be intercepted or bypassed. Instead, administrators can define interception or bypass policies for specific types of websites. For example, to protect user privacy, administrators can define bypass policies for accesses to financial service and healthcare sites.
Similar to the domain list function, the website classification function supports definition of either of the following filtering policies to distinguish SSL processing modes.
Interception policy: all traffic accessing websites belonging to the configured website category will be decrypted and then sent to security devices for inspection. Traffic accessing website categories that are not defined by the policy will be forwarded transparently.
Bypass policy: all traffic accessing websites belonging to the configured website category will be transparently forwarded without being decrypted and inspected by security devices. Traffic accessing website categories that are not defined by the policy will be intercepted.
On the same virtual host, interception policies and bypass policies cannot be configured simultaneously, that is, each virtual host can be configured with only one type of filtering policies. When a virtual host configured with both the domain list and website classification fucntions receives a request or response, it will take actions according to the following principles:
The virtual host will preferentially match the domain lists configured by the domain list function.
If a matching entry is found, it will process the request or response based on the control type (interception or bypass) of the domain list.
If no matching entry is found in the domain lists, it will look up the website’s category using the website classification function.
When trying to determine the website category using the website classification function, the virtual host will first search in the local cache and database.
If the local cache or database has category information for the website, the virtual host will process the request or response based on the control type (interception or bypass) of the filtering policy.
If no category information is available in the local cache and database, the system will connect to the Webroot server to query the website category online and save the acquired category information to the local cache.
If the Webroot server cannot recognize the website category, the system will intercept the request or response by default.
To use the website classification function to achieve intelligent URL filtering, please contact Array Networks Customer Support and provide the device model and serial number to obtain a license. This function supports two types of licenses:
Free trial license: 30-day free trial
Formal license: 365-day validity period
After the license expires, the website classification function will be unavailable. The Webroot server will deny the APV appliance’s access and the APV appliance will stop sending website category lookup queries to the server.
While cooperating with security devices to implement SSL interception, the APV appliance also supports the load balance of security devices, by which it distributes traffic evenly to multiple security devices. In addition to the SSL interception application scenario (forward proxy topology), this function is also supported in the reverse proxy topology.
In a reverse proxy topology, the APV appliance processes SSL traffic in the same way as that in an SSL acceleration scenario. As the SSL virtual host has the certificate and key of the real server installed, SSL traffic will be decrypted on the ingress node and then distributed to security devices based on a load balance method. Finally, the traffic will be sent to the real servers via the egress node.
In a forward proxy topology, administrators need to configure CA certificates on the ingress node. The ingress node will generate the simulated certificates to obtain and decrypt SSL traffic and then distributes the traffic to security devices in load balance mode.
For information about how to configure SSL interception and load balance of security devices in these scenarios, please contact Array Networks Customer Support to obtain the SSL interception configuration guide.
To protect specific network resources, most websites will employ the authentication mechanism to restrict end user’s access. Only end users that have passed the authentication can access specific network services. Meanwhile, in some large-scale websites, one click of an end user may require the coordination of multiple sub systems. If the end user has to do a round of authentication in every subsystem, this will not only increase the complexity of the authentication logic, but also impact user experience. Thus, an authentication system is always required to support Single Sign-On (SSO) at the same time.
The Secure Application Access (SAA) function provides AAA authentication and authorization methods based on SAML, LDAP, RADIUS and OAuth and Web SSO, which meets the requirement for user identity authentication in multiple application scenarios.
AAA is a series of combined features and operations that provide authentication, authorization and accounting functions for all connections and transactions on the internet. AAA provides a security architecture that enables control over which users are allowed access which services and how much of resources they have used. This empowers the administrators to tightly control user access to content, grant users with specific authorities to internal resources and realize the charging for services.
Currently, the APV appliance supports the authentication and authorization functions of the AAA feature.
The APV appliance performs authentication and authorization of end users by using AAA servers. An AAA server is any entity that is able to authenticate or authorize a user by using AAA. The APV appliance supports the following types of AAA servers:
Lightweight Directory Access Protocol (LDAP)
Remote Authentication Dial In User Service (RADIUS)
Security Assertion Markup Language (SAML) SP
Open Authorization (OAuth)
SAML defines an XML-based framework, in which every party creates and exchanges authentication, authorization and attribute information. On the APV appliance, SAML authentication is implemented based on the Security Assertion Markup Language (SAML) 2.0 standards. There are three entities in the SAML framework: subject, Identity Provider (IdP) and Service Provider (SP).
![]() | Note |
|---|---|
The timezone, date and time settings of the IdP and SP servers must be the same (at least in the minute level). |
Metadata defines how necessary configuration information is shared between two entities. Before starting authentication based on SAML, SP and IdP must own each other’s metadata file. When any of the metadata files is updated, the administrator must import the new one into the entity. A metadata file contains the following information:
Entity ID
Entity’s certificate, for signature and encryption
The URL address and protocol binding types supported by the SSO service, Single Logout (SLO) service, Assertion Consumer Service (ACS) and Artifact Resolution Service (ARS). Protocol binding defines the transport layer protocol used by SAML messages exchanged between SP and IdP. On the APV appliance, the SLO service supports HTTP Redirect and HTTP POST protocol binding types, and the ACS service supports the HTTP POST and HTTP Artifact protocol binding types.
HTTP Redirect: transports SAML messages via HTTP redirect (302 response) messages.
HTTP POST: transports SAML messages via Base64-encoded HTML content.
HTTP Artifact: transports the reference of SAML messages using HTML content or URL query strings.
Other information like contact and attribute requirements
In the process of SAML-based SSO, the APV appliance acts as the SP server and authenticates end users based on the user identity information provided by the IdP server. The two parties exchange information based on the SAML standards. The following figure shows the basic process of SAML-based SSO:
The client accesses the SP server using a browser and requests resources on real services.
The SP creates a SAML authentication request and redirects the client to the IdP for authentication. The request carries the protocol binding type (configured by the “aaa samlsp sp acs” command) supported by the ACS module.
The client submits the SAML authentication request to the IdP.
The IdP returns an authentication page to the client, requesting the login credential.
The client enters the login credential.
The IdP validates the login credential and returns a SAML response to the client, which contains an assertion about the user identity. An example assertion is “This user is John Doe, he has an email address of john.doe@example.com, and he was authenticated into this system using a password mechanism.”
The client browser sends the SAML response to the SP’s ACS module.
The SP extracts the username (configured by the “aaa samlsp idp attributes” command) from the SAML response, confirming that the client has been authenticated and then it returns resources.
After this process is completed, if this client accesses other resources, the APV appliance will directly return the resources based on the existing authentication context. The client does not need to enter the login credential again.
Based on SAML SSO, an end user can access multiple sites using the same authentication context. Thus, it will have a login session on all sites. Comparably, the function of SLO is to roll back the SAML SSO processes of all sessions, that is, log out login sessions on all login sites at the same time. For example, when an end user logs into multiple SP sites via the same IdP server, if the user logs out from one of these SP sites, the login sessions on other sites will also be removed.
The following figure shows the basic process of SAML SLO:
The client requests to log out of the SP2 server.
SP2 creates a SAML logout request and redirects the client to the IdP for logout.
The IdP creates a SAML logout request and sends it to SP1’s SLO module via the client’s browser by using the protocol binding type defined in SP1’s metadata file.
SP1 creates a SAML logout response to inform the IdP that the client’s login session is removed.
The IdP returns a logout request via the client browser to inform SP2 that the client has logged out from other SP.
SP2 returns a logout response to the client, and the client is logged out.
On the APV appliance, the LDAP authentication and authorization method supports all LDAPv3 protocols, including OpenLDAP and Active Directory. To prevent single of point failures, each LDAP server can be configured with three LDAP hosts. Administrators can configure authentication and authorization modes based on TLS for each LDAP host.
LDAP supports static and dynamic LDAP bind modes. The two modes cannot be configured simultaneously.
In dynamic LDAP bind mode, AAA will fetch the DN from the LDAP server first. After the dynamic LDAP bind mode is enabled, AAA sends a bind request containing the end user’s username and password to the LDAP server and then a search request containing the search filter string to obtain the LDAP entry of the end user. Then AAA sends the DN obtained from the LDAP entry together with the password of the end user in another bind request to the LDAP server. After the end user passes the authentication, AAA reuses the obtained LDAP entry to authorize the end user.
In static LDAP bind mode, the system will construct the user’s DN by concatenating the strings “<dn_prefix><USER><dn_suffix>”. <USER> is the username used to log into the virtual site. “<dn_prefix>” and “<dn_suffix>”must be the same for all users using the same virtual site. After the static LDAP bind mode is enabled, AAA sends the DN (<dn_prefix><USER><dn_suffix>) together with the password of the end user in a bind request to the LDAP server. After the end user passes the authentication, AAA sends a search request containing the search filter string to obtain the LDAP entry of this end user. Then, it authorizes the end user based on the obtained LDAP entry.
The RADIUS authentication and authorization mode supports up to three hosts configured for each RADIUS server to achieve redundancy. RADIUS requests are non-blocking and can be controlled by the timeout mechanism to ensure the transfer efficiency.
OAuth allows end users to grant authorization to third-party applications or websites to access their resources saved on other service providers. End users do not need to provide their user names and passwords to these applications or websites. During OAuth authentication process, there are mainly four roles:
Resource owner: indicates the end users.
Resource server: indicates the service provider that stores the protected resources. To access these resources, the requester must obtain an access token.
Client: represents the third-party applications that request for protected resources.
Authorization server: after verifying the resource owner’s identity and obtains an authorization grant, the authorization server will issue an access token to the client.
The APV appliance supports OAuth authentication via Google and WeChat login. When an end user accesses the virtual service, the APV appliance will redirect the user to the OAuth server of Google or WeChat for authentication and authorization. After the user passes authentication and grants authorization to the OAuth client, the OAuth client will request an access token from the OAuth server and use the access token to obtain user information and resources from the resource server.
The following figure shows the work flow in which the APV appliance cooperates with the OAuth server and resource server to implement the OAuth authentication.
The end user accesses the virtual service using the user agent (browser) and chooses to sign in with the third-party OAuth server.
The OAuth client (integrated on APV) returns a 302 response to redirect the user agent to the OAuth server.
The user agent sends an Authorization Request to the OAuth server.
The OAuth server validates the Authorization Request and returns the login page to the user for authentication.
The user enters the correct user credential.
The OAuth server checks whether the user grants the authorization to the OAuth client if the user passes the authentication.
The user grants the authorization to the OAuth client.
The OAuth server returns a 302 response with the authorization code.
The user agent sends the authorization code to the OAuth client.
The OAuth client sends the Access Token request to the OAuth server with the authorization code.
The OAuth server authenticates the OAuth client and returns the Access Token response carrying the issued access token.
The OAuth client requests the user information from the resource server with the access token.
The resource server returns the user information (such as user ID, email account, nickname and avatar picture) to the OAuth client.
As the OAuth 2.0 framework requires, the OAuth client should authenticate itself to the OAuth server. For this purpose, you need to register the OAuth client to obtain the Client ID and Secret and register the Redirection URL on the developer platform of the OAuth server’s service provider. For the Google OAuth server, the Redirection URL must be in the format of “https://<virtual_service_domain_name>/prx/000/http/hostlocal/oauth_code”. For the WeChat OAuth server, the Redirection URL must be the virtual service domain name. For information on how to register the OAuth client and the Redirection URL, please contact the service provider of the OAuth server.
![]() | Note |
|---|---|
OAuth authentication does not support multi-factor authentication or multi-step authentication. The AAA method configured for OAuth authentication is not controlled by the AAA ranking function and will always be available on the login page for end users to choose. To log into the virtual service using a third-party OAuth server, end users must access the virtual service using the domain name contained in the Redirection URL. |
OAuth authentication supports the following advanced settings:
Post-OAuth User Registration
With post-OAuth user registration, the OAuth authentication function allows you to bind the obtained OAuth usernames with existing company accounts saved on the AAA server.
When post-OAuth user registration is enabled, OAuth users are required to register to the system after passing the OAuth authentication. During the user registration, users need to authenticate themselves to the authentication server in the AAA method specified by the “aaa method register” command. After the user passes the authentication, the system will bind the obtained OAuth user IDs (UIDs) with the usernames used for registration. The usernames used for registration instead of the obtained OAuth usernames will be used for further authorization.
When post-OAuth user registration is disabled, the obtained OAuth usernames (email accounts for the Google OAuth server or nicknames for the WeChat OAuth server) will be used for authorization. Therefore, the authorization server in the same AAA method as the OAuth server should have accounts with the same usernames as the obtained OAuth usernames. Otherwise, the authorization will fail.
Using Email Account Prefix as Username
When the Google OAuth server is configured and post-OAuth user registration is disabled, administrators can enable this option so that the email account will be used as OAuth username for authorization. For example, if the obtained email account is “test@gmail.com”, only “test” will be used as the username for further authorization.
Post-OAuth Authorization Filter
With the post-OAuth authorization filter function, the OAuth authentication function ensures that only valid company users can go through authorization after OAuth authentication. The system performs authorization for the user only when the OAuth username (email account for the Google OAuth server or nickname for the WeChat OAuth server) matches the post-OAuth authorization filter.
For example, when the post-OAuth authorization filter is configured as “@arraynetworks.net”, the system performs authorization for the user if the obtained OAuth username is “test@arraynetworks.net”.
The APV appliance employs AAA method to define the AAA server used to authenticate users and the AAA server used to authorize users. For example, the administrator can define an AAA method in which LDAP will be used for authentication and RADIUS will be used for authorization
To enforce stricter security checks on users and ensure a higher level of security for the virtual service, APV allows the administrator to configure multiple authentication servers for a single AAA method to support multi-factor authentication (mutual username and multiple passwords). The user can successfully logs into the virtual service only after passing authentication from all authentication servers.
A maximum of three authentication servers are allowed for one AAA method. These three authentication servers can be of the same type or different types. However SAML SP server cannot cooperate with other servers.
When an application scenario has multiple AAA servers deployed and user credentials are stored on these AAA servers in a distributed manner, the administrator can define several AAA methods for a virtual service. Before a user logs into the virtual service, the user can select an AAA method for authentication as prompted. If the administrator does not want the users to know what authentication methods are used by the virtual service, the APV appliance supports the AAA rank function. With AAA rank, the APV appliance will hide AAA method options on the login page, after the user enters credentials, the APV appliance will select among the AAA methods based on the descending order of their priorities until the user passes authentication.
The APV appliance authorizes authenticated users with resources based on the qualifications of user roles. User roles allow more flexible, accurate and fine-grained user identification. Administrators can define one or multiple qualification rules for each user role, and each qualification rule can contain at most 32 conditions. Supported conditions include login time, user name, group name, source IP address and the used AAA methods etc.
Before accessing resources via a virtual service, the user must obtain at least one user role; otherwise, the APV appliance will log the user out and ask the user to log into the virtual service again. A user may match multiple qualification rules at the same time but can only obtain a user role when matching all conditions contained in the qualification rule. A user that does not match any qualification rule cannot obtain a user role, and therefore cannot obtain any resources via the APV appliance. Administrators can also define a user role for which the qualification rule does not contain any conditions. All authenticated users will be assigned this user role.
After an end user completes authentication, the system will create a login session for this user, which records information such as session ID, username and password. Besides, it also supports the following configurations to manage authenticated sessions:
Restriction on the number of sessions
The system supports the setting of limitations on the total number of sessions allowed on each virtual service and the number of sessions allowed per user on a virtual service. If the number of current active sessions reaches the specified limit, the system will not create new sessions any more.
Session timeout
Idle sessions will occupy connection resources if they are kept open for a long time. Administrators can set the timeout value of idle sessions to release resources in time.
For active sessions, the system also supports the setting of expiration time to control the duration of sessions.
Session reuse
The session reuse function allows users to share one session if they use the same username. If any of the users closes the connection, all other users must log in again to continue their access.
Besides SAML SSO, the APV appliance also supports Web SSO. In an application environment that bears multiple systems, Web SSO also allows end users to access all application systems that trust each other after one-time login authentication. The APV appliance relies on the SAML, LDAP, RADIUS or OAuth authentication function to support Web SSO. In application scenarios where Web SSO is needed, the SAML, LDAP, RADIUS or OAuth authentication function must be deployed in the first place.
![]() | Note |
|---|---|
When Web SSO is deployed and implemented based on SAML authentication, the “username” parameter in the “aaa samlsp idp attributes” command must be set to “uid”. In addition, administrators must make sure the APV appliance can obtain user credentials from the IdP server. The AG series of Array Networks can function as an IdP server to cooperate with the APV appliance to support the Web SSO function. For more information, please contact Array Networks Customer Support. When Web SSO is deployed and implemented based on OAuth authentication, the “save_password” parameter in the “aaa oauth registration” command must be set to “save”. |
On the APV appliance, Web SSO can be implemented based on the following methods:
NT LAN Manager (NTLM) authentication method
HTTP basic authentication method
HTTP POST SSO rule
NTLM is an authentication protocol that can provide protection for username and password exchanged during the authentication process. It employs the “challenge-response” scheme. Without submitting the actual passwords, clients can prove their knowledge of the passwords in an indirect way, thus this authentication mode can prevent the passwords from being intercepted by others.
![]() | Note |
|---|---|
In the NTLM authentication mode, the function of keeping persistent connections to real services must be enabled. |
The process of NTLM-based SSO between the APV appliance and real services is as follows:
The client requests resources on a real service via the APV appliance.
The real service returns a 401 Unauthorized response, requesting the client to do NTLM authentication.
The APV appliance submits an NTLM negotiation message (Type-1 message) on behalf of the client to negotiate on information such as the subject to be authenticated and the required security services. Besides, the client will also inform the real service of the protocols and encryption strength it supports.
The real service returns a challenge message (Type-2 message), which contains the selected encryption strength, security service and a challenge.
The APV appliance uses the client’s password and the received challenge to generate a challenge and sends it to the real service via an authentication message (Type-3 message).
The real service calculates an authentication message in almost the same way and compares it to the received one. If they match, the real service will confirm that the client owns the correct password. The authentication is completed.
In HTTP basic authentication, the server simply validates the login credential (username and password) for authentication. The SSO process between the APV appliance and real services via HTTP basic is as follows:
The client requests resources on a real service via the APV appliance.
The real service returns a 401 Unauthorized response, requesting the client to do HTTP basic authentication.
The APV appliance submits an authentication request on behalf of the client, which contains the client’s username and password.
The real service validates the client’s login credential and returns the requested resources.
Webagent plays the role of a web proxy server. It is responsible for establishing connections to servers on the behalf of clients. On the APV appliance, the Webagent function proxies HTTP/HTTPS (HTTP/2 is not supported) requests from clients via the Webagent service. The Webagent service applies in both IPv4 and IPv6 environments. In addition, it supports the access control and DNS cache function.
Administrators can configure a Webagent service and the DNS service on the APV appliance to implement its function as a proxy server. The following figure shows a basic configuration scenario for the Webagent service.
The APV appliance supports the following types of Webagent access control rules:
Permits requests accessing specific host names
Denies requests accessing specific host names
Webagent access controls can be applied to Webagent services only after being added to an access group. These types of access control rules can all be configured. The system supports a maximum of 1024 Webagent access control rules. By default, if a request hits both an access-permitted control rule and an access-denied control rule, the former takes effect.
The system supports the cache of A and AAAA resource records for the Webagent service.
By default, the system provides dynamical cache of resource records returned by the DNS server. The cache time defaults to 60 minutes. Within the cache time, if a client queries this domain name again, the system will directly return the cached resource record without sending the query to the DNS server for resolution, and the cache time will also be renewed. The system supports a maximum of 256 dynamic domain names, each of which can have at most 8 A and 8 AAAA resource records. When the number of dynamically cached domain names reaches 256, if a new domain name needs to be cached, the system will replace the firstly cached domain name with the new one.
For frequently queried domain names, administrators can add them as static resource records. A static resource will never time out and can only be manually deleted after they are added to the cache. The system supports a maximum of 256 static DNS domain names, each of which can have at most 8 A and 8 AAAA resource records.
This chapter introduces how to setup the QoS (Quality of Service) function on the APV appliance. We setup the QoS functionality to provide administrators with the control over network bandwidth and allow them to manage the network from the business perspective, rather than the technical perspective.
QoS for networks is an industry-wide set of standards and mechanisms for ensuring high-quality performance for critical applications. By using QoS mechanisms, network administrators can use existing resources efficiently and ensure the required service level without reactively expanding or over-provisioning their networks.
QoS provides network administrators with the capacity of TCP, UDP and ICMP flow management by using queuing mechanism and packet filtering policies. By using queuing mechanism and filter rules, QoS supports both bandwidth management and priority control.
The APV appliance has developed a queue-based QoS. Queue means a queue of network packet buffers. After the packet at the beginning of the queue has been processed, a new packet to be processed will be put at the end of the queue.
Each queue is bound with a particular network interface and controls either incoming or outgoing network traffic of that interface. QoS queues are organized in tree-like structures. On the top of a tree, a root queue is defined for either incoming or outgoing traffic of a network interface. Under the root queue, there can be multiple sub-queues. Sub-queues can also have their sub-queues. For each interface, at most two queue trees can be configured: one for the incoming traffic, and the other for the outgoing data.
Each queue is configured with bandwidth limit and priority for packet processing.
A QoS filter is a rule which associates particular network traffic with a QoS queue.
In filter rule, the network traffic is specified by five parameters: source IP subnet, source port, destination IP subnet, destination port and protocol. By this association, administrators can deploy either application-oriented or link-oriented QoS control. Normally, application-oriented filter rules have TCP or UDP ports defined while link-oriented filter rules focus on source or destination IP addresses.
Bandwidth management is realized by a set of QoS filter rules which bind particular network traffic to pre-defined QoS queues with limited bandwidth settings. The QoS filter rules help APV appliance servers to allocate appropriate bandwidth to satisfy the needs from various applications and links.
For more flexible bandwidth control, "BORROW/UNBORROW" strategy is applied to QoS queues in a tree-like structure. When a queue's "BORROW" flag is turned on, its bandwidth can be expanded by borrowing from its parent queue. If the parent queue does not have extra bandwidth to share, it can also fall back on its parent, until the parent queue is the root queue.
Priority Control is accomplished by QoS queues in different priorities. All packets from different applications or links are firstly classified by QoS filter rules and then distributed to predefined queues enjoying the pre-configured priorities.
This priority mechanism works well especially when the network become crowded. If the traffic reaches a peak, packet loss will arise when the number of packets waiting for processing exceeds the maximum queuing buffers. Under such circumstance, the packets belonging to the queues with the highest priority will be processed in the first place, while other packets with lower priorities may be dropped. In this way, the mission-critical applications will be assigned with the highest priority, therefore the functionality of the most important transactions is guaranteed.
This chapter details the configuration of the following Inbound and Outbound Link Load Balancing implementations:
Single APV appliance and two ISPs
Dual APV appliances and two ISPs
LLB (Link Load Balancing) allows TCP/IP network traffic to be load balanced through up to 128 upstream Internet Service Providers (ISPs). Load balancing can be performed on egress to the Internet (outbound LLB) or on ingress from the Internet (inbound LLB). LLB methods include rr (Round Robin), wrr (Weighted Round Robin), sr (Shortest Response), dd (Dynamic Detecting) and hi (Hash IP). LLB also includes ISP/link failure detection through default gateway and link health checking.
The APV appliance identifies links based on the logical port and peer MAC address. The statistics of LLB links are also collected based on the logical port and peer MAC address.
Outbound LLB provides optimized outbound link utilization for environments that have more than one default gateway. In essence, it allows outbound traffic to be distributed among multiple upstream/ISP routers.
For example, let's say you have Internet connectivity provided by two ISPs: ISP1 and ISP2. ISP1 assigns address range 100.1.1.0/24 so that you may use them on your network devices. ISP2 assigns address range 200.1.1.0/24 so that you may use them on your network devices. Outbound LLB allows you to load balance outbound connections traffic through ISP1 and ISP2. Connections forwarded through ISP1 are NATTed to an address from the range assigned by ISP1. Connections forwarded through ISP2 are NATTed to an address from the range assigned by ISP2. Thus, inbound responses for those connections will return through the ISP that they were originally sent through. If Internet connectivity through one of the ISP links is lost or interrupted, the outbound traffic will no longer be sent through that ISP. All traffic will be distributed to the functional ISP.
APV outbound LLB methods can work well on the data traffic based on TCP and UDP protocols, as well as the packets based on IP, IPSec or GRE protocols.
Inbound LLB provides service resiliency for inbound clients. Hosted services are visible to external clients via a separate IP address on the address space assigned by each ISP.
To illustrate, let's use the same example ISPs as mentioned previously. All external clients trying to connect to the addresses assigned by ISP1 will be routed through ISP1's backbone. All external clients trying to connect to addresses assigned by ISP2 will be routed through ISP2's backbone. Inbound LLB allows you to advertise a device or Virtual IP (VIP) using two IP addresses: one from ISP1 and the other from ISP2. A DNS server on the APV appliance will respond to queries for configured domain names. The responses will contain an IP address from ISP1 or ISP2, both representing the same device or VIP. If Internet connectivity through one of the ISP links is lost, the DNS server will not respond with the address from the failed ISP. Clients will receive only the address from the functional ISP.
LLB Health Check is used to check whether the link between the APV interface and the upstream device is available. This can be accomplished by broadcasting ARP requests at regular intervals and pinging a user-defined upstream IP address. Besides, TCP-based and DNS-based health checks are also supported.
Broadcasting ARP requests at regular intervals can check the availability of the link between APV interface and the upstream ISP router. Pinging a user-defined upstream IP address not only can verify if the link between APV interface and the upstream ISP router is available, but also verify the link between upstream ISP router and user-defined upstream IP address. Multiple upstream IP addresses can be defined for reliable checking. If any of check point is pingable, the related link is usable. This ensures that the WAN link is up before forwarding traffic across that link.
Apart from the LLB health check on the LLB links, the LLB Remote Site Accessibility Check function is designed to check whether a remote site is accessible to the APV appliance. A remote site stands for a remote network, and the administrator can specify a destination IP address in the remote network to be checked for the accessibility of the remote site.
ICMP- and TCP-based remote site accessibility checks are supported by this function.
This function works only for outbound traffic with the "rr" or "wrr" as outbound LLB method.
Outbound LLB supports the following load balancing methods:
rr (Round Robin)
wrr (Weighted Round Robin)
sr (Shortest Response Time)
dd (Dynamic Detecting)
hi (Hash IP)
Inbound LLB supports three load balancing methods:
rr (Round Robin)
wrr (Weighted Round Robin)
proximity
Round Robin distributes each new session to gateways in an alternating (round robin) way. This is the default load balancing method.
Weighted Round Robin is similar to Round Robin except that a bias (or weight) may be assigned to each gateway so that some gateways may receive more sessions than others. This allows more traffic to be directed through an ISP with higher bandwidth capacity.
Shortest Response Time: The link with the shortest response time will get the next request. Calculation of shortest response time of a link is based on the initiation process of each TCP connection (both inbound and outbound connections). For the most accurate result, there should be enough TCP traffic instead of a few long existing TCP connections or only UDP traffic.
![]() | Note |
|---|---|
1. If neither SLB traffic nor NAT traffic goes through the system, the LLB SR method cannot work properly. 2. The "sr" method cannot be used to load balance IP fragments, non-TCP/UDP packets, and reassembled UDP packets. |
Dynamic Detecting performs proximity calculations through all available ISP links to the destinations. By using parallel probe arithmetic, a request from the client will be sent to a destination by different ISP links at the same time. When the first response returns, the optimal ISP with the shortest response time will be selected for this request and other ISP connections will be failed. For future outbound traffic to the same destination, APV appliance will choose the best ISP connection, according to the results derived from these proximity calculations.
Hash IP distributes the outbound traffic among links in the way that the link with higher weight is routed with higher probability, by performing Hash operation on the source IP. When the chosen link is down, the system will carry another Hash operation on the links available. When HI is deployed as the LLB method, the IPflow function can be disabled.
Proximity: The IP address of the nearest DNS server will be sent to the client as the response. When a DNS request arrives, APV will first search in the Eroute table reversely to find a proximity route matching the source address of the DNS request, and then give response to the client with the corresponding DNS server's IP address (A record) according to the Eroute gateway.
LLB policies provide the methods necessary to allow administrators to direct outbound traffic to a preferred route based on the IP address (source and destination) and service type (mail, FTP, Web, etc.).Policy based routing, unlike regular routing, allows the inclusion of the source IP, source port and destination port as well as the protocol into the route selection. For example, using routing policy can ensure that all the traffic generated by AOL instant messenger always uses the same link. If instant messenger client uses different destination IP addresses in its requests and these requests are sent through the different routes, this might confuse the server and cause login failure. Configuring routing policy will prevent this problem. The CLI command for that would be:
AN(config)#ip eroute aol_route 1500 0.0.0.0 0.0.0.0 0 0.0.0.0 0.0.0.0 5190 tcp gateway_ip 1 |
The APV appliance supports at most 5000 eroutes.
IP region
Eroute supports IP region. Administrators are allowed to import pre-defined IP region table via HTTP, FTP or Local File method, and then execute the command "ipregion route" to apply the imported IP region table. This will generate a large number of Eroute configurations, without making complex configurations. Administrators are also allowed to export the IP region table via FTP URL or Local File method.
APV appliance will check the contents of the file instead of the file type when an IP region file is imported. To ensure that the IP region file can be imported successfully, please predefine the file contents strictly with the following items included in each entry:
IP subnet (in CIDR format)
Country name (optional, up to 7 bytes)
Brief description (optional, up to 63 bytes)
These items must be separated with a "Tab". For example:
27.8.0.0/13 CN China Unicom Chongqing Province network |
![]() | Note |
|---|---|
1. By default, there are three predefined IP region tables including "predefined_cernet", "predefined_cnc" and "predefined_ct". It is recommended not to use the same name with the default predefined IP region tables. 2. The routes and proximity rules configured for IP region exist as a whole in the system. Administrators cannot change or remove a single route or a rule. |
After an ISP link has been selected for an IP flow (source IP and destination IP) pair, all traffic with the same source IP and destination IP will be sent to the same ISP. After an IP flow has been idle for a period of time, the session will be removed. Subsequent IP flows will once again be distributed based on the load-balancing algorithm.
The administrator will need to provide the method necessary to allow end-users to direct outbound traffic to a preferred route based on the IP address and protocol type. APV appliance supports variant types of routing rules in which eroute priority is higher than priority of the default and static routes. Default routes will have priority 1 and static routes 101-132 depending on the netmask. For example, the static route with 24-bit netmask will have priority 124 and with 32-bit netmask will have priority 132. The routes that correspond to the interfaces will have priority 2000. The routes created based on the traffic that come from the local subnet are called droutes (Direct Route) and will have priority 2000.
The following table shows the priority of different types of routes:
Table 13-1 Route Priority
| Name of Route | Priority |
|---|---|
| EROUTE-P | 2001-2999 |
| IROUTE, DROUTE | 2000 |
| RTS | 1999 |
| EROUTE-N | 1001-1999 |
| IPFLOW | 1000-1999 (defaults to 1000) |
| STATIC ROUTE | 101-132 (IPv4) 101-228 (IPv6) |
| DYNAMIC ROUTE | 101-132 (IPv4) 101-228 (IPv6) |
| LLB LINK ROUTE | 2 |
| DEFAULT ROUTE | 1 |
For better link bandwidth management, the APV appliance allows administrators to set a threshold value for the LLB link bandwidth.
When performing link selection for the outbound traffic, the system considers not only the routing policies configured for links but also the load status of each link. That is, when the current link has reached the configured bandwidth threshold, the APV appliance will search for available links from matched routes according to the descending sequence of priorities. The APV appliance first searches for available links from routes with the same priority as the current link. If all available links reach their bandwidth thresholds, the APV appliance will search for available links from routes with lower priorities. If the gateways of all matched routes are down or reach the configured bandwidth thresholds, the APV appliance will still choose the current link to transmit traffic.
In addition, the APV appliance allows administrators to configure a priority for the LLB link bandwidth. If the priority of a matched route is higher than the LLB link bandwidth priority, the traffic will be directly forwarded through this route.
With the LLB bandwidth management function, you do not need to configure Eroutes with the same priorities for multiple links. This improves the efficiency and flexibility of link bandwidth configuration and management.
![]() | Note |
|---|---|
1. If the traffic hits an RTS or IPflow route, the traffic will be directly forwarded through the relevant LLB link no matter whether the LLB link reaches the bandwidth threshold. 2. If an Eroute has been configured with the source IP address, source mask, source port number, destination IP address, destination mask, and destination port number and these IP addresses and masks are set to 0.0.0.0 and port numbers are set to 0, the APV appliance will not search for available links from the matched routes whose priorities are lower than 1000. |
The DNS proxy function provides link load balancing for outbound DNS queries. With DNS proxy function, DNS queries can be distributed "evenly" among DNS servers of the ISP links.
The DNS proxy function works as follows:
When receiving a DNS query from an intranet client, the APV appliance will select a DNS server from all the DNS servers of ISP links according to the load balancing method, and change the destination IP address of the DNS query to the IP address of the DNS server.
The APV appliance forwards the DNS query to the DNS server of the ISP link.
The DNS proxy function supports the following methods:
rr: Distributes new DNS queries to the DNS servers of the ISP links in a round robin way.
wrr: Assigns every DNS server a weight. The DNS server with the higher weight will receive more DNS queries.
![]() | Note |
|---|---|
If the same "weigh" is specified for every DNS server or no "weight" is specified, the rr method will be used to select the DNS server; otherwise, the wrr method will be used. |
Configuration Example:
AN(config)# llb link route link1 100.10.1.1 1 0.0.0.0 0Mbps |
Besides, the DNS proxy function supports selecting the DNS server using the domain customization policy and DNS network policy for the outbound DNS query. The domain customization policy has a higher priority than the DNS network policy, and the DNS network policy has a higher priority than the load balancing method. Please refer to the sections 14.2.10.1 DNS Network Policy and 14.2.10.2 Domain Customization Policy for details.
The DNS network policy is used to select a DNS server for the DNS query whose source IP address belongs to a specific network segment. When the source IP address of a DNS query belongs to the network segment specified by a DNS network policy, the system will select the DNS server specified by this policy for this DNS query. If a DNS query matches multiple DNS network policies, the system will select the DNS network policy that has the longest subnet mask.
Configuration example:
AN(config)#llb dnsproxy network 10.0.0.0 255.0.0.0 dns_server1 |
After the above configuration is executed, the system will select the DNS server named “dns_server2” for the DNS query from the 10.0.1.3 source IP address.
The system supports three domain customization policies:
Static domain policy: The system always selects the specified DNS server regularly for the DNS query of the specific domain name.
Bypass domain policy: The system does not use the DNS proxy function for the DNS query of the specified domain name.
Persistent domain policy: The system persistently selects the specified DNS server for the DNS queries of the specified domain based on the source IP address. When the DNS query matches the persistent policy of the domain name for the first time, the system selects the DNS server based on the DNS network policy (if it is configured and matched) or the load balancing method for the DNS query, and records the corresponding relation between the source IP address and the selected DNS server. When subsequent DNS queries from the same IP address hit this policy, the system will select the specified same DNS server persistently.
Configuration Example:
AN(config)#llb dnsproxy domain “*.edu.cn” edu_dns |
After the above configuration is executed, the system will always select the DNS server named "edu_dns" for the DNS queries matching the “*.edu.cn” domain.
AN(config)#llb dnsproxy domain www.abc.com bypass |
After the above configuration is executed, the system will not use the DNS proxy function for the DNS queries matching the "www.abc.com" domain.
AN(config)#llb dnsproxy domain www.abc.com persistent |
After the above configuration is executed, the system will select the DNS server based on the persistent policy for the DNS queries matching the "www.abc.com" domain.
The DNS proxy function also supports link bandwidth check. When the traffic of an LLB link reaches the peak, the DNS servers of this LLB link will no longer be selected until this LLB link has spare bandwidth. The system will select a DNS server from other available DNS servers configured for the DNS proxy function.
Configuration Example:
AN(config)#llb dnsproxy link link1 server1 |
The DNS proxy function supports the link health check. The link health check allows the APV appliance to send the DNS query to the destination host to detect the health status of the specified link.
Configuration Example:
AN(config)#llb link route link1 100.10.1.1 1 0.0.0.0 0Mbps |
The APV appliance provides broad IPv6 support for the LLB module, of which the Eroute, inbound and outbound LLB, link health check and IP region can all work in the IPv6 network environment. For the Eroute, the source IP, destination IP, gateway IP and IP region can all be configured with the IPv6 addresses. However, please note that only IPv4 or only IPv6 addresses can be configured in one IP region table. For outbound LLB, only route-based LLB supports IPv6 configurations, while NAT-based LLB does not.
Global Server Load Balancing (GSLB) distributes network traffic among servers providing the same service and deployed in different locations by returning different DNS resolution results. The APV appliance adopts the Smart DNS (SDNS) technology to implement GSLB. SDNS makes smart decisions at DNS resolution to achieve the following goals:
High access efficiency: Based on the geographical location and network proximity of the user's local DNS, SDNS returns the IP address of the server that is "logically" nearest to the user or has the shortest response time, which improves the user's service access efficiency.
Disaster tolerance: When detecting that a server is faulty, SDNS will pick up the IP addresses of other available servers to respond to DNS queries. This ensures that users can still access the service normally when a server is faulty and therefore enhances the service continuity and availability. When the faulty server restores, SDNS can also switch the traffic back to it.
Load balancing: SDNS can distribute traffic among multiple available servers.
The following sections will describe the function principles and configuration examples of SDNS.
SDNS provides smart and authoritative resolution for domain names. Figure 15-1 shows the process of domain name resolution provided by SDNS.
The process of domain name resolution provided by SDNS is detailed as follows:
The client sends the DNS query to the local DNS to resolve the domain name "www.example.com".
After a few rounds of lookups, the local DNS finds that SDNS is the authoritative DNS for the domain name and forwards the DNS query to SDNS.
SDNS makes smart decision to pick up healthy service IPs and return them to the local DNS.
The local DNS returns the service IPs to the client.
The process of SDNS smart decision is detailed as follows:
Based on the domain name in the DNS query, SDNS finds the hit SDNS policy.
Based on the SDNS policy, SDNS finds the hit SDNS service pool.
Based on the method of the hit SDNS service pool, SDNS picks up service IPs.
SDNS returns the picked service IPs to the local DNS.
The SDNS host name is the basic unit of the domain name resolution provided by SDNS. In SDNS, the domain names that can be resolved are defined as SDNS host names.
For example:
AN(config)#sdns host name "www.xyz.com" 60 |
In SDNS, one SDNS host name can be resolved into multiple IP addresses. SDNS allows the administrator to add these resolved IP addresses in to a pool, which is called a "service pool". The IP address included in the service pool is called a "service IP".
The service IP can be an IPv4 or IPv6 address and the service IPs in a service pool can be either all IPv4 addresses or IPv6 addresses. Note that a service pool cannot contain both IPv4 and IPv6 addresses.
For example:
AN(config)#sdns pool name "pool1" 1 |
The SDNS service pool method determines which service IPs will be picked up from the service pool to return to the local DNS. Service IPs picked up from the same service pool vary with service pool methods. SDNS supports the following service pool methods:
Round Robin (rr)
Weighted Round Robin (wrr)
IP Overflow (ipo)
Hash IP (hi)
Simple Network Management Protocol (snmp)
drop
Table 15-1 describes the meanings of SDNS service pool methods.
Table 14-1 SDNS Service Pool Method
| Method | Meaning |
|---|---|
| rr | If the service pool contains three service IPs, the maximum_rr_count is 1, and the rr method is used, the service IPs will be returned in the DNS responses in the sequence of "1, 2, 3, 1, 2, 3…". |
| wrr | The wrr method is similar to the rr method. The difference is that every service IP in the service pool is assigned a weight. The second service IP will not be returned in the DNS responses until the number of times that the first service IP is returned reaches the weight value. |
| ipo | If the ipo method is used, the service IP with the highest priority will always be returned in the DNS responses. |
| hi | If the hi method is used, SDNS will compute the hash value based on the source IP address. For DNS queries with the same source IP address, SDNS returns the same service IP. |
| snmp | If the snmp method is used, SDNS will collect the data of specified OIDs from every service IP through the SNMP protocol, compute the metric of every service IP using the specified SNMP expression, and sort up service IPs in the specified sorting mode. The service IP in the in the first order will be returned in the DNS response. For details, refer to section 15.2.6.2 SNMP Data Collection. |
| drop | If the drop method is used, SDNS will directly discard the DNS query and return no DNS response. |
Besides, SDNS supports configuring two levels of service pool methods: primary and secondary. When failing to use the primary method to pick up any available service IP from the service pool, SDNS will use the secondary method. Therefore, the administrator must configure the primary method and can choose to configure the secondary method.
For example:
AN(config)#sdns pool method primary "pool1" "ipo" |
SDNS provides the Auto Failover function for the SDNS service pool using the ipo method. When the service IP(s) with the highest priority become(s) unavailable, the Auto Failover function will automatically switch the currently selected service IP(s) to the service IP(s) with the second highest priority in the same SDNS service pool. By default, this function is enabled.
For example:
AN(config)#sdns pool failover "pool1" on |
SDNS provides the Preemption function for the SDNS service pool using the ipo method. When the service IP(s) with the highest priority become(s) available again, the Preemption function will automatically switch the currently selected service IP(s) in the same SDNS service pool to the service IP(s) with the highest priority. By default, this function is enabled.
For example:
AN(config)#sdns pool preempt "pool1" on |
SDNS provides the Manual Switchover function for the SDNS service pool using the ipo method. This function allows the administrator to manually switch the currently selected service IP(s) to the service IP(s) with the specified priority in the same SDNS service pool.
For example:
AN(config)#sdns pool ipo reset "pool1" 2 |
![]() | Note |
|---|---|
If both the Auto Failover and Preemption functions are enabled, the manual switchover operation will not work. The manual switchover operation cannot be saved into memory. Therefore, the manual switchover operation will stop working after system reboot. When all the service IPs with the specified priority become down, DNS resolution will fail. |
The SDNS policy determines the SDNS service pool for the host name. SDNS supports two types of policies:
Region policy: determines the SDNS service pool based on the SDNS host name and the SDNS region into which the DNS query is divided.
Default policy: determines the SDNS service pool based on the SDNS host name. SDNS will use the default policy only when failing to pick up any available service IP from the service pool by using the hit region policy.
SDNS allows configuring multiple region policies and one default policy for the same host name. When the domain name in the DNS query matches multiple region policies, SDNS will first pick up available service IP(s) from the service pool associated with the region policy with the highest priority. If failing to pick up any available service IP from this service pool, SDNS will pick up available service IP(s) from the service pool associated with the default policy. If still failing to pick up any available service IP, SDNS will return the empty DNS response to the local DNS. For details on SDNS region policy, please refer to section 15.2.5 SDNS Region Policy.
In SDNS, the host name can also resolved into the Canonical Name (CNAME) record. An SDNS CNAME pool contains only one CNAME record. When SDNS receives a DNS CNAME query and the CNAME pool is hit, SDNS will return the CNAME record to the local DNS. When SDNS receives a DNS A/AAAA query and the CNAME pool is hit, SDNS first finds the CNAME record, then performs resolution on the CNAME, and finally returns the resolved IP addresses to the local DNS.
For example:
AN(config)#sdns service ip "web1" 10.8.6.10 |
After the preceding configurations are completed:
When receiving the DNS CNAME query for the domain name "www.example.com", SDNS returns the CNAME "www.web.example.com" to the local DNS.
When receiving the DNS A/AAAA query for the domain name "www.example.com", SDNS first finds the CNAME record of "www.example.com", then performs resolution on the CNAME "www.web.example.com", and finally returns the service IP "web1" or "web2" to the local DNS.
If no available service IP can be picked up from an SDNS service pool based on the pool method, SDNS can switch the DNS queries of this service pool to another SDNS pool, which provides a failover mechanism for the SDNS service pool. The second SDNS pool is called a fallback pool.
One SDNS service pool has only one fallback pool but can be the fallback pools of multiple other service pools. Multiple SDNS service pools can form a tree structure of fallback, as shown in Figure 15-2.
For example:
AN(config)#sdns pool name "Beijing" 1 |
After the preceding configurations are completed:
The service pools "Beijing" and "Tokyo" can fall back to the service pool "Asia" when they are unavailable.
The service pool "New_York" can fall back to the service pool "World" when the service pool "New_York" is unavailable.
The service pool "Asia" can fall back to the service pool "World" when the service pool "Asia" is unavailable.
![]() | Note |
|---|---|
SDNS disallows multiple SDNS service pools to form a loop structure of fallback. An SDNS service pool can fall back to an SDNS CNAME pool, but an SDNS CNAME pool cannot fall back to an SDNS service pool. |
SDNS logically divides DNS queries coming from various locations into different regions, which are called SDNS regions. The administrator can divide SDNS regions based on geographical localities, such as Unites States, Japan and China. The administrator can also divide SDNS regions based on actual requirements, such as based on the Network Service Provider (ISP).
For an SDNS host name, the administrator can configure only one default policy and multiple region policies. These region policies associate DNS queries of different SDNS regions with different SDNS service pools.
The region policy determines the SDNS service pool based on the SDNS host name and the SDNS region into which the DNS query is divided. In multiple region policies configured for the same SDNS host name, the SDNS service pools vary with the SDNS regions. SDNS uses the SDNS proximity rules to determine the SDNS regions into which DNS queries coming from a specified subnet are divided. When receiving DNS queries, SDNS uses the longest prefix matching rule to find the hit proximity rules and therefore determines the SDNS regions into which the DNS queries are divided. When a DNS query matched multiple region policies, SDNS determines the hit region policy based on the priority. The DNS query is processed by the SDNS service pool associated with the region policy with the highest priority.
SDNS allows the administrator to configure static proximity rules to associate specified subnets with SDNS regions, and to associate the ipregion table with the SDNS region to generate proximity rules in batch. The proximity rules generated using the ipregion table are also called ipregion proximity rules.
In addition, SDNS supports using the Dynamic Proximity System (DPS) to generate dynamic proximity rules. For details on DPS, please refer to section 15.2.7 SDNS Dynamic Proximity System (DPS).
For example:
AN(config)#sdns host name "www.xyz.com" 1 |
After the preceding configurations are completed:
The DNS queries for the host name "www.xyz.com" coming from the subnet 211.100.0.0/16 will hit the region policy "policy_beijing".
The DNS queries for the host name "www.xyz.com" coming from the subnet 210.10.0.0/16 will hit the region policy "policy_tokyo".
The DNS queries for the host name "www.xyz.com" coming from the subnet 216.100.0.0/16 will hit the region policy "policy_newyork".
SDNS monitor can be used to perform health check on SDNS services and collect SNMP data from SDNS services. To use SDNS monitor, the administrator must first define the health check template or data collection template and then apply the template to an SDNS service or SDNS service pool to generate the monitor instance(s). The system will execute health check or data collection based on the monitor instances.
SDNS monitor supports the ICMP-type, TCP-type and HTTP-type health check templates and the SNMP-type data collection template. A maximum of 200 health check and data collection templates are supported.
When a template is applied to an SDNS service, the system will generate a monitor instance for the SDNS service; while the template is applied to an SDNS service pool, the system will generate a monitor instance for every SDNS service in the service pool. The monitor instance generated based on the health check template is called the health check instance, and the monitor instance generated based on the SNMP data collection template is called the SNMP data collection instance. A maximum of 5000 monitor instances are supported and a maximum of 1024 SNMP data collection instances are supported.
SDNS provides the health check function to check the health status of the service IPs in the SDNS service pool. When a service IP becomes unavailable, SDNS will pick up other available service IPs to respond to DNS queries. This ensures that service IPs returned to the local DNS is healthy and available and therefore enhances the service continuity and availability.
SDNS supports the following types of health checks:
ICMP-type health check
The ICMP-type health check determines the availability of a service IP by sending the ICMP Echo Request (ping) to the service IP. If receiving the ICMP Echo Response from the service IP, SDNS regards this service IP as available (Up); otherwise, SDNS regards this this service IP as unavailable (Down).
TCP-type health check
The TCP-type health check determines the availability of a service IP by establishing the TCP connection with the service IP. If the TCP connection is established successfully, SDNS regards this service IP as available (Up); otherwise, SDNS regards this this service IP as unavailable (Down).
HTTP-type health check
The HTTP-type health check determines the availability of a service IP by sending the HTTP request to the service IP. If the service IP returns the expected response, SDNS determines the health result based on the result flag. If the result flag is “up”, SDNS regards this service IP as available (Up); if the result flag is “down”, SDNS regards this service IP as unavailable (Down).
HTTPS-type health check
The HTTPS-type health check determines the availability of a service IP by implementing SSL handshake with the service IP, and then sending an HTTP request to this service IP afterwards. If the SSL handshake is successful and the service IP returns the expected response, SDNS determines the health check result based on the result flag. If the result flag is “up”, SDNS regards this service IP as available (Up); if the result flag is “down”, SDNS regards this service IP as unavailable (Down).
To use the SDNS health check function, the administrator needs to first define health check templates and then apply health check templates to service IPs or service pools to generate health check instances.
The health check template is comprised of the following elements:
Health check type: can be ICMP, TCP, HTTP, or HTTPS.
Request line: specifies the predefined HTTP request content, which includes HTTP method, URL path and HTTP version. This parameter is available only for the HTTP-type and HTTPS-type health check templates. The default value is “HEAD / HTTP/1.0\r\n\r\n”.
Expected response: specifies the expected HTTP response(s). This parameter is available only for the HTTP-type health check template. The default value is “200 OK”.
Result flag: specifies the determined health check result when the expected HTTP response is received. This parameter is available only for the HTTP-type health check template. The default value is “up”.
Health check interval: specifies the interval of sending health check packets.
Health check timeout: specifies the timeout value of the health check packet. The value of the health check timeout should not be greater than that of the health check interval.
Maximum retry times: specifies the maximum times of health checks to determine the health status of the destination IP address. For example, if it is set to 3, the health status of the destination IP address will be regarded as Up when the health check result is Up for three consecutive times; the health status of the destination IP address will be regarded as Down when the health check result is Down for three consecutive times.
Destination IP address: specifies the IP address of the health check object. Usually this parameter is left empty. When the health check template is applied to the service IP or service pool, the destination IP address will be replaced by the corresponding service IP in the generated health check instances.
Destination port: specifies the port of the health check object. This parameter is available only for the TCP-type, HTTP-type and HTTPS-type health check templates. Usually, this parameter is set to 0. When the health check template is applied to the service IP or service pool, the destination IP port will be replaced by the health check port of the corresponding service IP in the generated health check instances. Note that the destination port of the TCP-type, HTTP-type and HTTPS-type health check templates and the health check port of the associated service IP cannot be both 0s.
Source IP address: specifies the source IP address of the health check packets.
Gateway IP address: specifies the IP address of the gateway forwarding health check packets in a multi-link network environment.
After the health check template is applied to the specified service IP, SDNS will generate the health check instance where the destination IP address is replaced by the service IP, and send the health check packet to the service IP. If the health check template is applied to the specified service pool, SDNS will generate the health check instance for each member (service IP) of the service pool. The administrator can choose to apply the health check templates to the service IP or service pool based on actual requirements.
If multiple health check templates are applied to a service IP, the service IP has multiple health check instances; if multiple health check templates are applied to a service pool, these health check templates will be applied to each service IP in the service pool. Therefore, each service IP in the service pool has multiple health check instances. SDNS allows the administrator to specify the relationship among health check instances of a service IP as an individual service IP or as a member of a service pool.
"AND": When the results of all health check instances of the service IP are Up, the status of the service IP is set as Up.
"OR": When the result of any health check instance for the service IP is Up, the status of the service IP is set as Up.
"Mixed Relationship": When the results of all health check instance for the service IP meet the requirement of the mixed relationship expression defined in "sdns pool health mixrelation" command, the status of the service IP is set as Up.
The default relationship among health check instances of a service IP is "AND".
For example:
AN(config)#sdns monitor icmp "hc_icmp" 5 5 3 0.0.0.0 0.0.0.0 0.0.0.0 |
SDNS provides the SNMP data collection function to collect the data of specified SNMP OIDs from SDNS services. The snmp method of the SDNS service pool needs to depend on the SNMP data collection function. SDNS computes the metric of every SDNS service based on the SNMP expression associated with the service pool. The SNMP expression determines the data of what SNMP OIDs will be used to compute the metric. To collect the data of such SNMP OIDs from every SDNS service, the administrator needs to configure SNMP data collection.
For the snmp method to work normally, the administrator needs to:
Define the SNMP OIDs whose data needs to be collected.
Define the SNMP expression used to compute the metric of the SDNS service.
Define the SDNS service pool using the snmp method and the associated SNMP expression.
Define SNMP-type data collection templates for the SNMP OIDs.
Apply the SNMP-type data collection templates to the SDNS service pool to generate SNMP data collection instances.
Every SNMP expression uses the data of one SNMP OID at minimum and three SNMP OIDs at maximum. The format of the SNMP expression is as follows:
Data of OID1 × Weight of OID1 + Data of OID2 × Weight of OID2 + Data of OID3 × Weight of OID3
Before defining the SNMP expression, the administrator needs to define the SNMP OIDs to be used. A maximum of eight SNMP OIDs can be defined.
After the system receives the data of the SNMP OIDs, SDNS will compute the metric of every SDNS service based on the SNMP expression, and sort up SDNS services according to the sorting mode configured for the SDNS service pool. The SDNS service pool supports two sorting modes:
Ascending: SDNS service IPs are sorted up in the ascending order of the metrics.
Descending: SDNS service IPs are sorted up in the descending order of the metrics.
To collect the data of SNMP OIDs from the SDNS services of an SDNS service pool, the administrator needs to create SNMP data collection templates for these SNMP OIDs and apply these templates to the SDNS service pool. In this way, the system generates SNMP data collection instances for every SDNS service in the SDNS service pool.
The SNMP data collection template is comprised of the following elements:
OID name: specifies name of the SNMP OID whose data needs to be collected.
Community string: specifies the community string of the SNMP server. The default value is “public”.
SNMP version: specifies SNMP protocol version used for communication.
Interval: specifies the interval of data collection.
Destination IP address: specifies the IP address of the data collection object. Usually this parameter is left empty. When the data collection template is applied to the service pool, the destination IP address will be replaced by the corresponding service IP in the generated data collection instances.
Destination port: specifies the SNMP port of the data collection object. The default value is 161.
Source IP address: specifies the source IP address of the SNMP requests.
Gateway IP address: specifies the IP address of the gateway forwarding SNMP requests in a multi-link network environment.
![]() | Note |
|---|---|
The SNMP-type data collection template can be applied only to the SDNS service pool. |
Configuration example:
AN(config)#sdns snmp oid "id1" ".1.3.6.1.4.1.7564.30.1.0" |
SDNS supports using the Dynamic Proximity System (DPS) to generate dynamic proximity rules.
DPS is comprised of DPS servers and DPS detectors.
DPS Server
The DPS master (the APV appliance) mainly provides the following function:
Collects the IP addresses of local DNSs and sends the address list to DPS detectors for detection.
Queries the proximity detection results from DPS detectors.
Generates dynamic proximity rules based on the proximity detection results.
DPS Detector
The DPS detector mainly provides the following functions:
Receives the IP address list of local DNSs from DPS servers.
Sends detection packets to local DNSs to obtain three types of proximity information: Round Trip Time (RTT), Packet Loss Rate (PLR) and hops.
Reports the proximity detection results to the DPS servers.
![]() | Note |
|---|---|
The DPS detector can be deployed on the APV appliance or on other servers running the Linux or FreeBSD operating system. |
How to Generate Dynamic Proximity Rules?
When receiving the proximity detection results from the specified SDNS region's DPS detector, the DPS server will calculate the metrics of the paths between the DPS detector (region) and all local DNSs. The DPS server will then generate a dynamic proximity rule between the local DNS and SDNS region whose path has the smallest metric.
SDNS supports four DPS methods:
rtt: Metric = RTT
plr: Metric = PLR
hops: Metric = hops
mix: Metric = Rtt x Weight + PLR x Weight + Hops x Weight
When the mix DPS method is used, the administrator needs to specify the weights for RTT, PLR and hops.
Working Mechanism of DPS
The local DNS sends DNS queries to the DPS server.
After a while, the DPS server collects a list of local DNSs and their IP addresses.
The DPS server sends the IP addresses of the collected local DNSs to the DPS detector of each region (CDN site) for detection.
The DPS detector starts to detect the proximity between its region and all local DNSs.
When the DPS server queries the proximity detection results, the DPS detector reports proximity detection results to the DPS server.
The DPS server generates the dynamic proximity rule based on received proximity detection results.
For example:
AN(config)#sdns region name "Beijing" |
In the APV appliance, SDNS processes DNS queries of the A, AAAA and CNAME types, and the Full-DNS function processes DNS queries of all the other types, such as MX and PTR.
When receiving DNS queries of the A, AAAA and CNAME types, the APV appliance dispatches them to SDNS for processing. When receiving DNS queries of other types, the APV appliance dispatches them to Full-DNS for processing. If the domain names in the DNS queries of the A, AAAA and CNAME types are not configured on SDNS, the APV appliance will return empty DNS responses. When Full-DNS fails to process DNS queries of other types, the APV appliance will also return empty DNS responses.
When the Recursive Query function is enabled:
The APV appliances will forward the DNS queries of the A, AAAA and CNAME types to Full-DNS for processing if the domain names in the DNS queries have not been configured on SDNS.
The APV appliances will forward the DNS queries to other external DNSs to perform recursive query if Full-DNS cannot process them and finally returns the resolution results to the local DNS.
By default, the Recursive Query function is disabled.
![]() | Note |
|---|---|
Full-DNS can be configured only via WebUI. |
Assume that only resource records of the A, AAAA, or CNAME type are available on SDNS for the domain name "image.example.com". To ensure that the DNS queries of the other record types can be correctly processed, you are advised to configure a TXT record in the following format for the domain name "example.com" in the Full-DNS zone file:
image IN TXT "A text string" |
![]() | Note |
|---|---|
The "text string" can be any description about this domain name. |
SDNS provides comprehensive IPv6 support.
AAAA DNS resolution: SDNS can process the DNS query of the AAAA type.
SDNS service IP: The service IP can be an IPv4 or IPv6 addresses.
SDNS service pool: The service IPs in a service pool can be either all IPv4 addresses or IPv6 addresses. Note that a service pool cannot contain both IPv4 and IPv6 addresses.
SDNS proximity rule: Proximity rules support IPv6.
SDNS DPS: SDNS supports IPv6 DPS detectors and supporting detecting IPv6 local DNSs.
SDNS health check: SDNS supports performing health checks on IPv4 and IPv6 service IPs.
SDNS supports the DNSSEC function, which is designed to defend against man-in-the-middle attack during DNS recursive queries, and is used to prevent against DNS spoofing attacks and DNS cache poisoning.
DNSSEC helps ensure the integrity and authenticity of DNS responses by utilizing a cryptographic signature mechanism. The DNSSEC records signing is achieved by the combined use of ZSK (Zone Signing Key) and KSK (Key Signing Key). In the DNSSEC mechanism, ZSK is used to sign all the Resource Records in the zone, while KSK is used to sign only the ZSK (DNSKEY Record). The signing Keys and RRSIG records provided by the DNS server help ensure that the Resource Records have not been tampered in any way. To further check the legitimacy of KSK, the local DNS server queries the upper-level DNS server for the DS (Delegation Signer) record, which contains the hash of the DNSKEY record, to create a chain of trust for the DNS resolution process.
The DNS resolution process of SDNS DNSSEC is as shown in the following figure:
As shown in the preceding figure, the DNS resolution process of SDNS DNSSEC is as follows:
The client sends a DNS query to the local DNS server for resolving the domain name "array.edu.com".
The local DNS server requests the root DNS server for the responding Resource Record (such as A record) of this domain name and the public key of the root DNS server.
The DNS server sends the IP address of upper-level DNS server (for the.edu.com domain) and its own public key to the local DNS server.
The local DNS server requests the upper-level DNS server for the A record.
The upper-level DNS server sends the IP address of the authoritative DNS server (for the array.edu.com domain name) to the local DNS server.
The local DNS server requests the authoritative DNS server for the A record and the DNSKEY record of this domain.
The authoritative DNS server (SDNS) sends the A record, RRSIG record (singed A record) and its own public key to the local DNS server.
The local DNS server requests the upper-level DNS server for the DS record of the authoritative DNS server for array.edu.com domain name. The DS record contains the message digest of the KSK public key, and helps verify its authenticity.
The upper-level DNS server returns the required DS record to the local DNS server.
The local DNS server requests the root DNS server for the DS record of the upper-level DNS server to verify the authenticity of the KSK public key in the upper-level DNS server.
The root DNS server returns the required DS record to the local DNS server.
The local DNS server returns the A record of the domain name to the client.
After the SDNS configuration for the specified SDNS host name (domain name) is completed, the appliance will function as the authoritative DNS server for this host name. To use the DNSSEC function, administers need to perform the following configurations:
Create ZSK and KSK signing keys
Publish the signing keys onto the specified SDNS host name
Sign the Resource Records for the specified SDNS host name to produce RRSIG records and DS file.
Upload the DS file of the signing key to the upper-level DNS server
Enable the DNSSEC function for SDNS
The WebWall functionality of the APV appliance allows you to create permit/deny rules to filter packets passing through your network infrastructure. The WebWall supports the filtering of TCP, UDP and ICMP packets that are using the IPv4 or IPv6 address. To use access lists you will define these "permit" and "deny" rules and apply them to access groups. Once the access lists are configured, you may apply or bind the group to an interface within the network.
The steps for basic WebWall configurations are explained in this section, along with some advanced features and general knowledge of how WebWall works. For ArrayOS, the WebWall feature can independently control each interface.
WebWall permits TCP and UDP health check traffic, but cannot permit ICMP health check traffic automatically.
WebWall is a full-fledged stateful Firewall. It bridges the gap between speed and security. The APV appliance houses and integrates the WebWall feature into a single platform, along with many of other features such as Layer 4-7 load balancing, caching, SSL acceleration, authentication and authorization.
WebWall contains several security mechanisms to protect Web servers from attack, including:
ACL (Access Control List) filtering
Protection against Syn-Flood, Fragmentation and DoS (Denial Of Service) attacks
Stateful packet inspection
Single packet attack prevention
ACL Filtering provides tight control over who may and may not enter the network by utilizing APV’s ultra-fast rules engine. WebWall access control list filtering mechanism ensures virtually no performance loss with up to 1,000 ACL rules, while never consuming more than one percent of ArrayOS capability.
In addition to ACL filtering, the WebWall provides stateful packet inspection and protects against Syn-Flood, fragmentation, DoS and single packet attacks.
The WebWall is a default-deny firewall. Default-Deny refers to the notion that if you do not have any permit rules in your access control lists, no packets will be allowed to pass through the appliance. During the initial installation of the box it might be helpful to leave the WebWall in the off or disengaged state until your total configuration is complete.
![]() | Note |
|---|---|
By default the WebWall is turned off. The WebWall function will remain disabled until it is activated via the "webwall on" command. |
Web Application Firewall (WAF) can provide real-time security protection for the Web sites and Web application systems. The WAF function can defend against the common threats and malicious attacks, such as Structured Query Language (SQL) injection. The WAF function of APV appliance provides the following features:
HTTP/HTTPS traffic detection: The WAF function is capable of parsing the HTTP protocol completely, including the headers, parameters and payload. Besides, the WAF function can cooperate with the SSL acceleration function to parse the HTTPS protocol.
Rule engine: The WAF function provides a set of rules that is easy-to-use and flexible. The administrator can use the predefined ruleset to recognize the common Web attack, or use the custom ruleset to recognize and prevent other attacks. Furthermore, the WAF function is compatible with the open source intrusion detection and protection engine “ModSecurity”. The administrator can use the ModSecurity Core Rule Set (CRS) in the WAF function.
Virtual patching: The virtual patching function of the WAF function can protect the Web application against attacks by fixing the flaws of Web application on the APV appliance, which is more convenient and faster compared with fixing such flows on the Web application flaws directly.
Traffic logging: The WAF function can monitor the HTTP and HTTPS traffic in real time, and record the entire event transaction log. Furthermore, the WAF function can cooperate with the third-party remote audit log server and provide the statistical analysis and security event report using the third- party remote audit log server.
Cooperative with other functions: The WAF function can work together with functions such as SLB, Cache, Compression and SSL acceleration.
Flexible deployment: The WAF function can be deployed in transparent mode and reverse proxy mode.
In the WAF function, virtual services can be associated with identical or different security profiles. A security profile includes one or more rulesets and a ruleset includes one or more rules.
A rule is the basic directive of the WAF function. The WAF function analyzes the rules and takes corresponding actions based on the matching result of the HTTP and HTTPS traffic and rules, hence protecting the system against possible Web attacks.
The syntax of a rule is: SecRule Variable Operator Action. The following figure provides an example of the rule:
The meanings of elements of a rule are as follows:
SecRule: Creates a rule that uses a specified operator to check the variable and performs the action when the variable matches the operator.
Variable: Specifies the variable name to be checked. Each rule can contain one or more variables. The variable value can be any HTTP parameter. For example, in the figure above, “REQUEST_URI” is a variable name and specifies the request body of the variable to be checked.
Operator: Describes how to check the variable. The operator uses regular expressions. The WAF function also provides multiple available operators. “@” is used to specify which operator is used. For example, in the figure above, “@beginsWith abc” is an operator and specifies the URL address that begins with “abc”.
Action: Indicates which action will be performed when the variable matches the operator. For example, “phase:2,auditlog,deny,msg:'Failed to parse request body.'” is an action of the rule. The action specifies that the system will perform the rule in the “phase:2”, block the request, display the error message “Failed to parse request body.” on the browser of the client, and record the contents of the request in the audit log.
The WAF function extracts the related information from the Request Headers, Request Body, Response Headers or Response Body of HTTP and HTTPS packets and takes actions defined in the rule. The corresponding phases are phase:1, phase:2, phase:3 and phase:4. For details of the rules of WAF function and the related phases of the rules, please contact Array Networks Technical Support.
The action is the behavior that the rule will take on the HTTP and HTTPS traffic matched with the rule. The actions of the rules include:
deny: When the attack is detected, the system will send the error page to the client to indicate that the request is blocked and record the log.
pass: When the attack is detected, the system will only record the log.
block: When the attack is detected, the system will take the default action of the rule, which is the action of ruleset where the rule belongs. For details about default action of the rule, please refer to the section “Ruleset”.
The ruleset includes one or more rules. The WAF function matches the HTTP and HTTPS traffic with every rule in the ruleset and takes corresponding action on the matched traffic. The type of a ruleset can be either predefined or custom. The predefined ruleset includes SQL injection and Cross Site Scripting (XSS). The administrator can use the custom ruleset to define custom rules to prevent the system against attacks. In addition, the administrator can import the custom ruleset via the CLI interface or the WebUI interface, or export the ruleset via WebUI interface flexibly.
Rulesets are implemented in the descending order of priorities. For predefined rulesets and custom rulesets with an identical priority, the execution of the rulesets will be at random.
A ruleset defines the default action for the rules. The actions of the rulesets include “deny” and “pass”. All the actions of rules are defined as “block” in the predefined ruleset. And the system will take the action of the predefined ruleset. For the custom ruleset, the action of a rule can be “deny”, “pass”, “block” and so on. For the rule whose action is “deny” or “pass”, the system will take the action of the rule; for the rule whose action is “block”, the system will take the action of the custom ruleset.
![]() | Note |
|---|---|
If the directive <Location> or <LocationMatch> is configured and the action of the custom rule corresponding to the directive is configured as “block”, the “pass” action will be executed regardless of the action of the custom ruleset. |
A security profile includes one or more rulesets. By adding multiple rulesets to the security profile and associating the security profile with the virtual service, the administrator can configure security profile for the virtual service without associating every ruleset with the virtual service which provides simpler and easier configuration methods. In addition, the administrator can flexibly control the processing mode on detected system attacks by changing the working mode of the security profile without changing the action of each ruleset. For the details of working modes, please refer to the section “Working Mode”.
The working modes of the security profile include:
Passive mode: When the attack is detected, the system will record the log, but will not block the traffic or send the error page to the client.
Active mode: When the attack is detected, the system will record the log, block the traffic and send the error page to the client.
The existing logging function of the APV appliance can record all information about client access. The security level of the log is “warning”. Besides, the WAF function provides the audit log function.
Audit logs will record the HTTP and HTTPS traffic. Audit logs can be stored on the local disk or sent to the third-party remote audit log server. For how to install the third-party remote audit log server, please contact Array Networks Technical Support.
![]() | Note |
|---|---|
Audit logs cannot be stored on both the local disk and the third-party remote audit log server. |
The system supports the configuration of advanced Access Control List (ACL) to limit network traffic and control clients’ access behavior. This helps protect against attackers that maliciously launch large volume of access traffic so as to improve the availability of internal resources. This function is implemented by access control rules that impose checks on the source IP address, protocol and host name of packets. It determines whether to permit a packet or take other actions when the packet matches the conditions speculated in an access control rule.
The advanced ACL function of the APV appliance supports three types of access control rules, ACL rules, HTTP ACL rules and DNS ACL rules, all of which are applicable in both IPv4 and IPv6 environments.
The ACL rule restricts the number of connections per second (CPS) and concurrent connections (CC). It applies to virtual services that are running over TCP.
The HTTP ACL rule restricts the number of requests per second (RPS) and the download rate. It applies to only HTTP and HTTPS virtual services.
The DNS ACL rule restricts the number of requests per second (RPS). It applies to only DNS virtual services and SDNS.
![]() | Note |
|---|---|
ACL rules, HTTP ACL rules and DNS ACL rules may impact the system performance. ACL rules, HTTP ACL rules and DNS ACL rules take effect only for connections established after the rules are configured. When accessing HTTP or HTTPS virtual services that use the insert cookie policy, the client requests that carry cookies inserted by the appliance are not restricted by ACL rules and HTTP ACL rules. |
The ACL rule supports two control modes and two control types.
Control modes:
"total" mode indicates that all the clients on a subnet will be restricted by the ACL rule as a whole.
"per-ip" mode indicates that every client on a subnet will be restricted by the ACL rule individually.
Control types:
"cps" indicates restriction on the CPS.
"concurrent" indicates restriction on the CC.
The administrator needs to combine the control modes and control types as needed for configuring ACL rules for a subnet. There are four combinations of ACL rules for the same subnet. See the following table.
Table 17-1 Four Rules for the Same Subnet
| cps | concurrent | |
|---|---|---|
| total | The total CPS of all the clients on the subnet cannot exceed the specified maximum value. | The total CC of all the clients on the subnet cannot exceed the specified maximum value. |
| per-ip | The CPS of every client on the subnet cannot exceed the specified maximum value. | The CC of every client on the subnet cannot exceed the specified maximum value. |
One or more rules of the preceding combinations are allowed for a subnet on the APV appliance. If multiple rules have been configured for a subnet, these rules will work at the same time.
Subnet Nesting
The ACL rule supports subnet nesting. If the IP address of a client hits multiple subnets, the client is subject to the restriction of all the ACL rules of the smallest subnet hit, and of the "total" rules of all the upper subnets of the smallest subnet. The system supports 3-layer subnet nesting at most.
For example:
10.8.0.0/16: Both "total" and "per-ip" rules are configured.
10.8.0.0/24: Both "total" and "per-ip" rules are configured.
Then, clients on the subnet of 10.8.1.0/24 will be subject to the restriction of:
10.8.0.0/24: "total" and "per-ip"
10.8.1.0/16: "total" rules
![]() | Note |
|---|---|
ACL rules may impact on the system performance. ACL rules take effect only for connections established after the ACL rules are configured. |
The administrator can configure ACL whitelists to make the clients on the whitelists free from restriction of ACL rules. When both ACL rules and whitelists are applied to the same virtual service, the whitelists have higher processing priorities than the ACL rules.
If the IP address of a client belongs to the subnet defined in an ACL whitelist, the client will not be subject to the restriction of any ACL rule. However, the CPS and CC of the client will be counted in the total CPS and CC of the subnet it belongs to respectively.
For example:
Rule: 10.8.1.0/24; total concurrent ≤10,000
Whitelist: 10.8.1.10/32
If the CC on the client whose IP address is 10.8.1.10 is 1000,
Then, the maximum total CC of the subnet 10.8.1.0/24 (excluding 10.8.1.10) is 9000.
ACL rules and ACL whitelists can be applied not only to an individual virtual service, but also to virtual services globally. The advanced ACL function supports all TCP-based virtual services.
When accessing a specified virtual service, a client is subject to the restriction of not only the ACL rules applied to this virtual service individually but also the ACL rules applied globally.
For example:
rule1: 0.0.0.0/0, per-ip concurrent ≤1000
rule2: 0.0.0.0/0, per-ip concurrent ≤ 900
rule1 is applied to vs1; rule2 is applied globally.
Then, when the client whose IP address is 10.8.1.10 accesses the virtual service "vs1", the allowed maximum CC is 900.
For Layer 7 HTTP and HTTPS virtual services with the insert cookie policy used, the APV appliance will insert cookies in the responses sent to the clients. The APV appliance can identify these clients with the inserted cookies. When a client accesses the virtual service again and carries the cookie inserted by the APV appliance in the requests, the client will not be subject to the restriction of any ACL rule. However, the CPS and CC of the client will be counted in the total CPS and CC of the subnet it belongs to respectively.
HTTP ACL rules impose restrictions on the RPS and download rate of clients accessing HTTP and HTTPS virtual services. When an HTTTP ACL rule restricting RPS is triggered, the system will exercise control over clients’ access or take specific approaches. The HTTP ACL rule that restricts the download rate will control the download rate of clients within a specific range.
The system supports static and dynamic HTTP ACL rules. The static HTTP ACL rules are manually configured via CLI or WebUI, and dynamic HTTP ACL rules are automatically generated by the system’s security module based on judgment of whether the system is under an attack.
Static HTTP ACL Rule
This type of HTTP ACL rules allows the administrator to customize control rules on HTTP traffic.
Dynamic HTTP ACL Rule
The system will generate dynamic HTTP ACL rules after the system DDoS attack defense function is enabled (by the “ddos on” command). Dynamic HTTP ACL rules are an enhancement to the traditional HTTP ACL rules (static HTTP ACL rule). Besides static HTTP ACL rules, when the system detect an HTTP DDoS attack, if HTTP verification is not enabled, the system will generate a dynamic HTTP ACL rule for a suspicious client to restrict its access to a virtual service. This rule specifies the RPS threshold as 100 and the download rate threshold as 1024 KB/s. If the RPS of the client that matches this rule reaches 100, subsequent requests from this client will be dropped, until its RPS decreases to a value smaller than 100 again. At the same time, the download rate of the client that matches this rule will be restricted within 1024 KB/s. If HTTP verification is enabled when the system detects an HTTP DDoS attack, the IP address of the client that has been confirmed as illegitimate will be recorded in the DDoS blacklist.
Static HTTP ACL rules take precedence over dynamic HTTP ACL rules. When both types are triggered, the system preferentially executes the static one.
HTTP ACL rules support two types of control modes: RPS and download rate.
1. RPS control
The RPS-based HTTP ACL rule calculates the number of HTTP requests initiated by a client or all clients on a subnet per second. When the number reaches the specified threshold, the system will take actions on subsequent requests as speculated in the HTTP ACL rule. In this way, it prevents servers from being overloaded by large number of HTTP requests and improves the availability of servers.
Matching Condition
The system calculates the RPS based on the matching conditions speculated in the HTTP ACL rule. When an HTTP request meets all of the following conditions, it is included in the RPS count of an HTTP ACL rule:
The client’ IP address belongs to the subnet specified by the HTTP ACL rule.
The requested URL matches the URL regular expression in the HTTP ACL rule.
The HTTP access method matches the HTTP method specified in the HTTP ACL rule. The system supports the following HTTP methods for filtering HTTP requests:
All: indicates all HTTP methods, that is, all HTTP requests are included in the RPS count.
GET, POST, HEAD, DELETE, or PUT: indicates that only HTTP requests using the specified HTTP method will be included in the RPS count.
Processing Mode
For clients whose RPS exceeds the specified limit of an HTTP ACL rule, the system will take actions on subsequent requests that also match the rule. It supports two processing modes:
Returning an error page: By default, the appliance returns a built-in 480 error page. Administrators can also customize the format and content of the returned error page by importing or redirecting the error page.
Resetting the connection by sending an RST packet
2. Download rate control
The download rate-based HTTP ACL rule restricts the download rate of a client or every client on a subnet below the threshold specified by the rule.
Matching Condition
The system detects the download rate of clients based on the matching conditions speculated in the HTTP ACL rule. When an HTTP request meets all of the following conditions, the initiating client’s download rate will be restricted by the HTTP ACL rule:
The client’s IP address belongs to the subnet specified by the HTTP ACL rule
The requested URL matches the URL regular expression specified in the HTTP ACL rule.
DNS ACL rules are used to control the number DNS queries per second. They can be used in both the DNS SLB and SDNS application scenarios. A DNS ACL rule will specify an RPS threshold. When the number DNS queries per second reaches this threshold, subsequent DNS queries will be dropped. In the DNS SLB application scenario, the DNS ACL rule imposes control over the number of DNS queries received on a DNS virtual service. In the SDNS application scenario, the DNS ACL rule imposes control over the number of DNS queries received on the BIND9 DNS server.
The system supports static and dynamic DNS ACL rules. The static DNS ACL rules are manually configured via CLI or WebUI, and dynamic DNS ACL rules are generated by the system.
Static DNS ACL Rule
This type of DNS ACL rules allows the administrator to customize control rules on DNS traffic.
Dynamic DNS ACL Rule
In initial setup, the system will generate dynamic ACL rules after the DDoS attack defense function and the DNS DDoS attack defense function is enabled. Dynamic DNS ACL rules are an enhancement to the traditional DNS ACL rules (static DNS ACL rule). During the runtime of a network, traffic load fluctuates with clients’ access behavior. However, the traditional DNS ACL rules cannot dynamically control network traffic as the volume of network traffic changes. To provide a type of DNS ACL rules that impose dynamic control over the fluctuating network traffic and as an effort to simplify administrators’ configuration load, the system supports dynamic DNS ACL rules. This type of rules is dynamically generated by the system based on the actual traffic load on the network. The system will continuously learn and calculate the DNS traffic load on the network during runtime to generate dynamic DNS ACL rules on each virtual service, regardless of whether static DNS ACL rules are configured. Static DNS ACL rules take precedence over dynamic DNS ACL rules. When both types are triggered, the system preferentially executes the static one.
The control mode specifies the range that a DNS ACL rule takes effect on a specific subnet. It supports two modes:
“total”: indicates that all the clients on a subnet will be restricted by the DNS ACL rule as a whole.
“per-ip”: indicates that every client on a subnet will be restricted by the DNS ACL rule individually.
Matching Condition
The system calculates the RPS based on the matching conditions speculated in the DNS ACL rule. When a DNS query meets all of the following conditions, it is included in the RPS count of a DNS ACL rule:
The client’ IP address belongs to the subnet specified by the DNS ACL rule.
The DNS query matches the DNS resource record type specified in the DNS ACL rule. The system supports the following DNS resource record types for filtering DNS queries:
All: indicates all types of DNS queries are included in the RPS count.
A, NS, MD, MF, CNAME, SOA, MB, MG, MR, NULL, WKS, PTR, HINFO, MIFO, MX, TXT, AAAA, OTHERS or ANY: indicates that only the specified type of DNS queries are included in the RPS count.
DNS ACL rules allow at most 3-layer subnet nesting. If a client’s IP address hits multiple subnets, and the request matches multiple DNS ACL rules for different subnets, this client is subject to the restriction of the DNS ACL rule for the smallest subnet and of the “total” rules of all the upper subnets of the smallest subnet.
The Distributed Denial of Service (DDoS) attack has become an increasingly frequent attack mode on the Internet. It is characteristics of multiple sources launching attacks on the same target at the same time, resulting in service unavailability. There are mainly the following root causes that lead to the service unavailability:
Exhaust of system resources (bandwidth, memory and computing) to cause a device failure, such as the UDP Flood and SYN Flood attacks
Disruption of network protocol or status to cause device malfunction, such as IP fragment attack and Ping of Death attack
Exploitation of application errors to cause system abnormality or disclosure of critical information, such as DNS poisoning
Based on the network layer where DDoS attacks occur, the DDoS attacks can be classified as network layer attack, session layer attack and application layer attack. Two tendencies have emerged in DDoS attacks. On the one hand, the attack traffic is dramatically increasing. On the other hand, application-layer attacks burst and are increasingly complicated, which is hard to detect and mitigate. The DDoS attack defense function of the APV appliance provides attack detection and defense mechanisms against DDoS attacks on the three network layers above. It implements an extra layer of protection for SLB services.
This section lists DDoS attacks that frequently occur on the network layer and the defense mechanisms provided by the APV appliance.
IP option attack
Symptom: IP options are used for debugging or for some special applications. Attackers usually use IP options for source routing, which employs the trusted client’s IP address to attack the server. An IP header can contain multiple IP options. These options can have a flexible combination in the type, length and order. Some new systems and protocols may encounter fatal errors when processing these options.
Defense: The system does not process IP options by default. It will strip all IP options from received packets.
ICMP Flood
Symptom: This type of attack overloads the target host with too much ICMP traffic. The host will be unable to serve normal requests. Finally, the network is crashed.
Defense: The system filters out ICMP traffic to invalidate the attack via the underlayer operating system.
Ping of Death
Symptom: In Ping of Death attacks, the server will receive IP packets whose length is longer than 65,535 bytes. Some systems cannot process such long packets, and may malfunction or even reboot.
Defense: The system will drop all overlong IP packets.
Smurf
Symptom: Smurf attackers use the target server’s IP address to send ICMP requests to a broadcast address. When all hosts in the broadcast subnet reply ICMP responses to the target server, the network is crashed.
Defense: The system will drop ICMP requests that are sent to a broadcast address.
In initial setup, TCP DDoS attack defense takes effect when the system DDoS attack defense is globally enabled. After TCP DDoS attack defense is enabled, the system will detect and defend against the following types of TCP DDoS attacks.
SYN Flood
Symptom: By using faked IP addresses, attackers repeatedly send SYN packets to each port of the target server. The server repeatedly replies SYN-ACK packets on each port, and finally encounters failures due to exhausted memory or CPU resources.
Defense: The system will check the validity of SYN packets, drop the attack packets and file attack records.
PUSH/ACK Flood
Symptom: ACK and PUSH-ACK packets are used to confirm the receipt of packets coming from the other communication party. In an ACK Flood, the target server will receive a large number of faked ACK packets. Its resources will be exhausted because of processing these packets. Finally, the service quality decreases and even is interrupted.
Defense: The system will detect the suspicious source and file attack records.
FIN/RST Flood
Symptom: The attackers send faked RST or FIN packets at an extremely high rate to the target server. These packets do not belong to any TCP session, but the server commit a lot of resources in looking up the matched TCP sessions. If the RST or FIN packet accidentally matches an existing TCP session, the session will be disconnected.
Defense: The system will detect the suspicious source and file attack records.
Connection Flood
Symptom: This type of attack features the long-time opening of massive connections to the target server by using real IP addresses. These idle connections exhaust the server’s connection resources, so it cannot serve normal connection requests.
Defense: The system will decrease the connection timeout value, detect the suspicious sources and file attack records.
UDP DDoS attack defense protects against UDP Flood. In initial setup, UDP DDoS attack defense will take effect after the system DDoS attack defense function is enabled.
UDP Flood
Symptom: UDP Flood is a type of resource exhaustion attack. As UDP is stateless, attacker will send a great number of UDP packets to the random ports of the target server. The server repeatedly looks up the applications listening on these ports. As no application is matched, the server needs to return massive ICMP destination unreachable packets. Finally, network bandwidths in both directions are quickly used up. Moreover, link congestion occurs.
Defense: The system will detect the suspicious source and file attack records.
SSL Anomalies
Symptom: Attackers initiates massive SSL packets that are malformed or irresolvable, resulting in system process crashes and service unavailability.
Defense: The system will filter out and drop invalid packets using the SSL state machine.
SSL Handshake Timeout
Symptom: Attackers request to establish a large number of TCP connections but do not send SSL handshake messages or application data after TCP connections are established, consuming up SSL connection resources on the server.
Defense: The system has a default SSL handshake timeout mechanism. In initial startup, the system will check the duration of each SSL handshake based on the default timeout value (10,000 ms). If the system does not receive SSL handshake messages or application data after the connection has been established for 10,000 ms, it will reset the connection and file attack records.
SSL Renegotiation
Symptom: Attackers frequently send SSL renegotiation requests to trigger new renegotiation handshakes after the SSL connection is established. Therefore, one TCP connection will carry multiple SSL handshake sessions, which consumes up computing resources.
Defense: The system has a default interval threshold for SSL renegotiation requests. It will check the interval between two SSL renegotiation requests based on the default threshold (10,000 ms). If the renegotiation interval is smaller than 10,000 ms, the system will reset the connection and file attack records.
The most frequently encountered DDoS attacks on the application layer include HTTP DDoS and DNS DDoS attacks.
HTTP Anomalies
Symptom: Attackers initiate massive HTTP packets that are malformed or irresolvable, resulting in system process crashes and service unavailability.
Defense: The system will filter out and drop invalid packets using the HTTP state machine.
HTTP Slow Attack
Symptom:
Slowloris: Attackers keep connections unclosed by sending an HTTP header at wide intervals, which uses up HTTP connection resources on the server, causing failures to establish connections for normal requests.
Slowpost: Similar to the Slowloris attack, attackers keep connections unclosed by sending a POST request at wide intervals.
Defense: The system has a default interval threshold for HTTP datagrams. In initial startup, the system will check the interval between two HTTP datagrams based on the default threshold (2000 ms). If the HTTP datagram interval is larger than 2000 ms, the system will record a timeout event. When three timeout events are accumulated, the system will reset the connection and file attack records.
Long Form Submission and Challenge Collapsar (CC)
Symptom: Processing long forms consumes massive system resources. Attackers implement such attacks by submitting long forms using HTTP methods like GET and POST. Similar to long form submissions, attackers initiating CC attackers send a great number of HTTP query requests to the target server, which will excessively occupy backend database resources. Finally, the server will be unable to serve normal requests.
Defense: The system has a default threshold for the number of cookies carried in an HTTP request, as well as a default threshold for the number of queries contained in a URL. In initial startup, the system will check the number of cookies carried in an HTTP request and the number of queries contained in a URL based on the default thresholds (both are 10). If the number of cookies carried in an HTTP request or the number of queries contained in a URL exceeds 10, the system will verify suspicious clients. If a client is confirmed as an attacker, the system will reset the connection and file attack records.
HTTP Flood and Hashdos
Symptom: HTTP Flood aims to exhaust CPU resources, including GET Flood and POST Flood. Attackers request enormous resources at high rate to overload the server and cause the server unable to server normal requests. Hashdos is similar to HTTP Flood. It exhausts the computing resources. The implementation of Hash tables is basically the same. If a Hash value is mapping to multiple keys, all entries will be indexed to the same position. This will leverage the performance of the Hash table.
Defense: The system has default thresholds for the response time of the HTTP servers in responding to GET, POST, HEAD, PUT and DELETE requests. In initial startup, the system will check the servers’ response time based on the default thresholds (100 ms). If the average response time of all HTTP servers exceeds 100 ms and this fact persists for more than 30s, the system will collect and verify the top 10 traffic users (“ddos http verify on”), and add illegitimate clients to the ACL blacklist (“ddos http acl blacklist on”).
The system provides the DNS DDoS attack defense mechanism that is can be independently controlled. Administrators can decide whether to enable DNS DDoS attack defense based on actual network needs. DNS DDoS attack defense protect against DNS Query Flood and DNS NXDomain Flood. In initial setup, DNS DDoS attack defense takes effect after the system DDoS attack defense function is enabled.
DNS Query Flood
Symptom: DNS Query Flood is essentially a type of UDP flood. As DNS servers play a critical role in network running, DNS Query Flood always has a more serious impact. It is characteristics of sending massive DNS queries to the server, and the server will finally deny services because it is bound up in processing too many DNS queries.
Defense: The system has a default mechanism for detecting the response time of DNS servers. In addition, it supports dynamical DNS ACL rules for defending against the attack. During runtime, the system will calculate the average response time of DNS virtual services in processing DNS queries. If the current response time is found to be abnormally higher than the average value, and the current RPS is much larger than the RPS threshold, the system will decrease the RPS threshold until the current response time returns to the average value and the RPS returns to a number below the threshold. In SDNS application scenarios, the system has adequate resource capacities to defend against DNS Query Flood based on A, AAAA or CNAME resource record types. For DNS Query Flood based on other types of resource record types, the system provides protection for BIND9 DNS servers via DNS ACL rules.
DNS NXDomain Flood
Symptom: DNS NXDomain Flood employs the same attack method as the DNS Query Flood, except that the domain name queried by DNS NXDomain Flood attackers are randomly generated or do not exist. When the server finds the domain name cannot be resolved, it will perform recursive query. The entire resolution process will overload and crash the DNS server.
Defense: The system will detect the suspicious source and file attack records.
ACL blacklist records all IP addresses that are denied of access. If an IP address is added to the ACL blacklist, all traffic coming from it will be dropped. The system supports dynamical blacklisting of an IP address. Administrators can also manually configure ACL blacklists.
After dynamical blacklisting function is enabled, the system will automatically add clients’ IP addresses to the ACL blacklist when it detects an HTTP DDoS attack and confirms that the clients are illegitimate via the HTTP verification mechanism. Within 60 minutes, all traffic coming from a blacklisted IP address will be dropped. By default, this function is disabled. When it is disabled, the detected attackers’ IP addresses will not be automatically added to the ACL blacklist. In addition, administrators can manually add an IP address or subnet to the ACL blacklist, or import an IP list from an external URL address and then apply it to the ACL blacklist.
As the IPv4 addresses exhaust, how to transit from the IPv4 network to the IPv6 network becomes a challenge for many enterprises and organizations.
The APV appliance provides comprehensive support for IPv6 to help enterprises and organizations with the IPv4-to-IPv6 transition without any business interruption. With the IPv4/IPv6 dual stack support on APV, the IPv4 resources can be delivered to the IPv6 users, and vice versa. As a result, the IPv4-based and IPv6-based networks can be easily interconnected and intercommunicated. What's more, the APV appliance in the IPv6 network can achieve the same level of secure and efficient application delivery as it does in the IPv4 network.
This chapter will introduce functions and configurations about IPv6 SLB, DNS64/NAT64, DNS46/NAT46, IPv6 NAT and NDP.
APV provides comprehensive IPv6 support for the SLB module. For the service layer, SLB services from Layer 2 to 7 all support IPv6. For the service type, all of the service types except RDP, SIP-UDP and SIP-TCP support IPv6. For the SLB method and policy, all of the SLB methods except SNMP and all of the SLB policies support IPv6. Additionally, for the three SLB deployment modes, IPv6 is supported as follows:
IPv6 to IPv4 (supported by the reverse proxy mode)
IPv4 to IPv6 (supported by the reverse proxy mode)
IPv6 to IPv6 (supported by the reverse proxy mode, transparent mode and triangle mode)
Among which, the reverse proxy mode can work in the IPv4/IPv6 co-existing network environment, as well as in the IPv4 only or IPv6 only network environment. The transparent mode and triangle mode can only work in the IPv4 only or IPv6 only network environment.
The following figure shows the topology of the "IPv6 to IPv4" deployment method.
Likewise, the "IPv4 to IPv6" deployment method can be adopted by configuring an IPv4 address for the virtual service and an IPv6 address for the real server. For the "IPv6 to IPv6" deployment method, both the virtual service and real server should be configured with IPv6 addresses.
The DNS64 function converts the DNS AAAA queries sent from IPv6 clients to DNS A queries and then converts the DNS A responses to DNS AAAA responses. This ensures that IPv6 clients can access IPv4 servers. The APV appliance returns the translated IPv6 addresses to IPv6 clients. When IPv6 clients use these IP addresses to access IPv6 servers, the NAT64 (Network Address Translation IPv6 to IPv4) function converts the IPv6 packets sent from these clients to IPv4 packets. When the APV appliance receives IPv4 packets from IPv4 servers, the NAT64 function converts IPv4 packets to IPv6 packets. This ensures that IPv6 clients can communicate with IPv4 servers normally. The DNS64 and NAT64 functions can be deployed on two APV appliances separately, or deployed on one APV appliance.
The DNS64 and NAT64 functions are applicable to the "IPv6 to IPv4" scenario, as shown in the following figure.
The working process of the DNS64 and NAT64 functions is as follows:
An IPv6 client (2012:1081::a03:30b) sends a DNS AAAA query to the APV appliance (2012:1001::3ff:40b) to resolve the domain name "www.example.com".
The APV appliance sends the DNS AAAA query to the DNS AAAA authoritative server for the domain name.
If the DNS AAAA authoritative server has no AAAA record for the domain name, it will return an empty DNS AAAA response to the APV appliance. The APV appliance will ignore this response.
The APV appliance waits for 100 ms after sending the DNS AAAA query. If the APV appliance does not receive any valid DNS AAAA response, it will send a DNS A query to the DNS A authoritative server for the domain name.
The APV appliance receives the DNS A response (for example, A: www.example.com - 192.168.2.10) from the DNS A authoritative server.
The APV appliance converts the DNS A response to a DNS AAAA response (for example, AAAA: www.example.com - 64:ff9b::192.168.2.10) by adding the configured IPv6 prefix. Then, the APV appliance returns the converted DNS AAAA response to the IPv6 client.
The IPv6 client uses the converted IPv6 address to access "www.example.com".
The APV appliance converts the IPv6 packet (src: 2012:1081::a03:30b; dst: 64:ff9b::192.168.2.10) sent from the client to an IPv4 packet (src: 192.168.2.1; dst: 192.168.2.10), and sends the IPv4 packet to the target IPv4 server.
The IPv4 sever returns an IPv4 packet (src: 192.168.2.10; dst: 192.168.2.1) to the APV appliance.
The APV appliance converts the IPv4 packet to an IPv6 packet (src: 64:ff9b::192.168.2.10; dst: 2012:1081::a03:30b) and returns the IPv6 packet to the IPv6 client.
The DNS64 function can be enabled on only one DNS virtual service. This virtual service, acting as the DNS proxy, converts DNS AAAA queries to DNS A queries and then converts DNS A responses to DNS AAAA responses. To make the DNS64 function work properly, you need to configure the "default" and "backup" policies for this virtual service. The APV appliance forwards DNS AAAA queries based on the "default" policy and forwards DNS A queries based on the "default" policy. Therefore, the real servers associated with the "default" policy should be DNS servers that can answer AAAA records, and those associated with the "backup" policy should be DNS servers that can answer A records.
The DNS46 function converts the DNS A queries sent from IPv4 clients to DNS AAAA queries and then converts the DNS AAAA responses to DNS A responses. It also creates mapping records between the IPv6 addresses and IPv4 addresses. The APV appliance returns the translated IPv4 addresses to IPv4 clients. When IPv4 clients use these IPv4 addresses to access IPv6 servers, the NAT46 function converts IPv4 packets sent from clients to IPv6 packets based the created mapping records. When the APV appliance receives IPv6 packets from IPv6 servers, the NAT46 function converts IPv6 packets to IPv4 packets. This ensures that IPv4 clients can communicate with IPv6 servers normally. Because the DNS46 and NAT46 functions both use the mapping records, they must be deployed on one APV appliance.
The DNS46 and NAT46 functions are applicable to the "IPv4 to IPv6" scenario, as shown in the following figure.
The working process of the DNS46 and NAT46 functions is as follows:
An IPv4 client (61.130.10.10) sends a DNS A query to the APV appliance (210.108.10.1) to resolve the domain name "www.example.com".
The APV appliance sends the DNS A query to the DNS A authoritative server for the domain name.
If the DNS A authoritative server has no A record for the domain name, it will return an empty DNS A response to the APV appliance. The APV appliance will ignore this response.
The APV appliance waits for 100 ms after sending the DNS A query. If the APV appliance does not receive any valid DNS A response, it will send a DNS AAAA query to the DNS AAAA authoritative server for the domain name.
The APV appliance receives the DNS AAAA response (for example, AAAA: www.example.com - 2012:1081::a03:30b) from the DNS AAAA authoritative server.
The APV appliance converts the DNS AAAA response to a DNS A response (for example, A: www.example.com - 210.108.10.10) based on the configured address pool (that is, the IPv4 mapping subnet configured by using the command "ipv6 dnsnat46 ipmap"). Then, the APV appliance returns the converted DNS A response to the IPv4 client. Meanwhile, the system creates a mapping record between 2012:1081::a03:30b and 210.108.10.10.
The IPv4 client uses the converted IPv4 address to access "www.example.com".
The APV appliance converts the IPv4 packet (src: 61.130.10.10; dst: 210.108.10.10) sent from the client to an IPv6 packet (src: 2012:1081::a03:30a; dst:2012:1081::a03:30b) based on the created address mapping record, and sends the IPv6 packet to the target IPv6 server.
The IPv6 server returns an IPv6 packet (src: 2012:1081::a03:30b; dst: 2012:1081::a03:30a) to the APV appliance.
The APV appliance converts the IPv6 packet to an IPv4 packet (src: 210.108.10.10; dst: 61.130.10.10) and returns the IPv6 packet to the IPv4 client.
The DNS46 and NAT46 functions can be enabled on only one DNS virtual service. This virtual service, acting as the DNS proxy, converts DNS A queries to DNS AAAA queries and then converts DNS AAAA responses to DNS A responses. To make the DNS46 and NAT46 functions work properly, you need to configure the "default" and "backup" policies for this virtual service. The APV appliance forwards DNS A queries based on the "default" policy and forwards DNS AAAA queries based on the "backup" policy. Therefore, the real servers associated with the "default" policy should be DNS servers that can answer A records, and those associated with the "backup" policy should be DNS servers that can answer AAAA records.
The APV appliance not only supports NAT64 and NAT46, but also supports "IPv6 to IPv6" NAT, which is able to translate the IPv6 addresses on the internal network to the IPv6 addresses on the Internet. In addition, NAT pool configurations also support IPv6.
![]() | Note |
|---|---|
"IPv6 to IPv6" NAT supports TCP and UDP packets, but does not support ICMP and FTP packets. When configuring the "IPv6 to IPv6" NAT, the parameter "gateway" cannot be configured in the "nat port {pool_name|vip} <source_ip> {netmask|prefix} [timeout] [gateway] [description]" command. |
NDP (Neighbor Discovery Protocol), a key protocol of the IPv6 stack, can be used for obtaining the link address information of other neighbor nodes connected with the local nodes. Similar to the ARP (Address Resolution Protocol) of the IPv4 stack, NDP can perform address transformation between the network layer and the link layer. The difference is that NDP uses ICMPv6 (Internet Control Message Protocol version 6) and multicast to manage the information exchanged among the neighbored nodes (within the same link), and keeps the address mapping between the network layer and the link layer in the same subnet.
ePolicy is a script-based function for extending the capabilities of the APV appliance. Using the scripts written in Tools Command Language (TCL), you can customize new features in addition to the existing functions on the APV appliance. For example, the APV appliance can be customized to support more application protocols, precisely control IP application traffic in both incoming and outgoing directions, or control the access of the specified client to real services.
The elements of ePolicy are as follows:
Event
Command
Command invocation rule
ePolicy uses an event-driven and message-response mechanism. The APV appliance defines an event for every action occurring in each Client-APV-Server connection. When such an event occurs, the APV appliance will process traffic according to preconfigured ePolicy commands.
ePolicy uses commands to instruct the APV appliance to process traffic after an event occurs, such as rewriting packet contents, selecting real servers, selecting groups, or querying whether a group has valid real servers.
Command invocation rules indicate the relationship between events and commands. Based on the command invocation rules, you can flexibly combine the events and commands to intercept, detect, convert, or redirect the IP application traffic in both incoming and outgoing directions.
For detailed information of events, commands, and command invocation rules, contact Array Customer Support for related documents.
By functions, the scripts of ePolicy can be classified into the following:
Runtime script: specifies the action of the APV appliance for an event. The content of a runtime script should be written according to the actual requirement based on events, commands, and command invocation rules. For the examples of the runtime scripts, contact Customer Support for related documents.
Setting script: specifies the traffic type of a virtual service. The following table lists the setting scripts that are currently supported.
Table 17-1 Content of Setting Scripts
| Traffic Type | Content of the Setting Script |
|---|---|
| HTTP | message::type http |
| Diameter | message::type binary |
Generic TCP | message::type binary |
With ePolicy scripts, an APV appliance can be customized to:
Balance loads. When being applied to Server Load Balancing (SLB), ePolicy can work as SLB policies and collaborate with SLB methods to realize load balancing among real services.
Analyze the packet contents of the HTTP, Simple Object Access Protocol (SOAP), eXtensible Markup Language (XML), and Diameter protocols.
Receive, send, analyze, and discard Generic TCP and TCPS packets.
Perform pattern matching for txt data
Control TCP connections
Monitor and take statistics of traffic
In SLB, ePolicy can collaborate with the following methods:
Round Robin (rr)
Least Connection (lc)
Shortest Response (sr)
Persistent IP (pi)
Hash IP (hi)
Hash IP and port (hip)
Consistent hash IP (chi)
SNMP (snmp)
ePlocy IDE is designed to assist ePolicy script coding. It has the basic functions of an editor including script editing and storage, and functions based on ePolicy including grammar check, highlight of script commands and events, and automatic code completion.
To obtain the ePolicy IDE component, please contact your customer support, or send email to support@arraynetworks.com.
The Logging mechanism used by the APV appliance is Syslog compliant. System error and HTTP access information during proxy application are logged by using the logging subsystem. Syslog is a standard program for Unix and there are also Syslog implementations for Windows. On the Unix platform, Syslog is started by the syslogd daemon. The syslogd daemon takes charge of receiving and storing log messages from local machine or remote machine, which listens at UDP 514 port. APV appliance supports three remote log servers.
Syslog is a protocol that is used for the transmission of event notification message across networks. Syslog logging has eight valid levels of log message severity:
emerg
alert
crit
warning
notice
info
debug
And the supported facilities are LOCAL0 to LOCAL7.
Users can view the internal log buffer, select the transport protocol, and configure Syslog source and destination ports and the alerts on log message string match.
RFC5424 defines the standard format of Syslogs. The APV appliance supports the RFC 5424 Syslog function. When the RFC 5424 Syslog function is enabled, the system will generate system logs in the standard format defined by RFC 5424. The format is "<PRI>VER TIMESTAMP HOSTNAME APPNAME PROCID MSGID STRUCTURED-DATA MSG-CONTENT". (The PROCID and STRUCTURED-DATA fields are not supported temporarily and are displayed as "-".) By default, the RFC 5424 Syslog function is disabled. The configuration of "log rfc5424 on" takes effect only when the system logging function has been enabled by using the "log on" command.
HTTP Access Logging is the logging of information about every HTTP request and its response in a specific predefined format.
HTTP Access Logging supports four standard formats: Combined, WELF (WebTrends Enhanced Log), Common and Squid. And users can define their own logging format by using the "log http custom" command.
![]() | Note |
|---|---|
The APV appliance will record an HTTP access log only after the HTTP communication between the client and the Web server is completed successfully. |
Log filtering is designed to filter logs to different log servers by matching filter strings which are configured in the command "log filter".
Log filtering in ArrayOS allows administrators to collect only the logs that they are interested in instead of having to capture all the logs. For example, the administrator of "www.site1.com" may want to only collect the HTTP access logs for "www.site1.com". Knowing if the logs contain a keyword "site1.com", the administrator can create a filter for a log definition that captures only the logs which match the keyword. The administrator will now have a log file which contains only the desired logs.
If multiple log filters are set on a Syslog host, the logs matching one of the filter strings will go to the Syslog host.
The system allows the administrator to enable one local syslog host on the appliance to receive and store the system logs. By default, the local syslog host is disabled.
After being enabled, the local syslog host starts to receive the system logs sent by the system on the IP address 127.0.0.1 and the UDP port 515. The local syslog host can save a maximum of 50,000 system logs for every log level. These system logs stored on the local syslog host can be viewed and exported via the WebUI.
To enable the local syslog host, execute the “log localhost on” command in CLI. Alternatively, on the WebUI, select Admin Tools > System Logs > Log Settings, set the Local Syslog Host slider to Enable in the Log Settings area and click the Save Changes button, as shown in the following figure.
To view the system logs stored on the local syslog host, click the Local Syslog Host tab, as shown in the following figure.
This chapter will focus on various configuration maintenance elements, such as downloading new ArrayOS software, rebooting your APV appliance, reverting your configuration to a previously saved status or returning the APV appliance to its factory default settings among other closing strategies.
The final series of configuration options concern the running operation of your APV appliance and its relationship with the rest of the network architecture. Through the various subfolders (within the WebUI) that are revealed once you click on the "Admin Tools" folder you will discover a series of sub-folders allowing you to set administrative passwords, perform configuration synchronization, set SNMP traps and define reboot strategies among other operations. Otherwise all of these features may be configured via the CLI.
If you have an external authentication server (RADIUS/Tacacs), you may use these servers to authenticate the SSH/WebUI logon request. The external authentication will be performed when the "admin aaa" command is set to ON and the logon user name does not exist in the ArrayOS system.
AN(config)#admin aaa on |
Simply enough, employing the "quit" command will allow you to exit the CLI. In the event you want to terminate all APV appliance interactions with your network, you will need to use the "system shutdown" command.
| AN(config)#system shutdown |
The APV appliance will prompt you with an alert to verify the shutting down process. By entering "YES", case sensitive, the APV appliance will commence the shutting down operation. After a brief, 60-second period, users may turn off the appliance.
In some cases when dealing with configuration changes you might need to reboot the box.
| AN(config)#system reboot |
When working with configurations there may come a time that you want to experiment with a new configuration strategy, but not overwrite your known working configuration. The ArrayOS possesses several options for working with configurations files.
In general, you work with the running configuration and write it to disk by using the "write memory" command. You can also save the configuration to a file by using the "config file" command, on the APV appliance. Finally, you may export and import the configuration by using TFTP.
To clear the running configuration on the APV appliance:
| AN(config)#clear config all |
Now the APV appliance has been returned to its factory default settings. When working with the "write memory" command, keep in mind that this is the configuration file that will be loaded when the APV reboots. If you have made changes and want to clear the configuration currently running, use the "clear config" command.
At any point when you want to import a previously saved configuration, you will need to clear the current, running configuration as previously discussed in this chapter. Once this is completed, you can import the new configuration. The APV appliance affords you the opportunity to save configurations to three separate places; the "memory" file which is where the APV appliance calls up configuration settings upon reboot, the "file" where the APV appliance can store several different configurations, and to the "net" which refers to saving a file to a remote location on the network. To save configuration files:
| AN(config)#write net tftp 10.10.0.3 default_config |
To recall a previously saved configuration and merge it into the running parameters of the appliance:
AN(config)#config memory |
When loading the configuration file while the box is running, it is important to remember that the configuration is merged with the running configuration. So you need to choose to clear the appropriate configuration from the APV appliance before you load a configuration file. For example, if you have 5 real servers defined and execute the "config net tftp 10.10.0.3 default_config" command and if that configuration file has 5 real servers using the same real names you will get an error since you cannot have duplicate real server names.
To see the current version of ArrayOS software that is running, we use the "show version" command.
AN#show version |
To upgrade to a newer release there are several steps to take.
First, contact Customer Support to gain access to the software and documentation repository. Contact your customer support representative or send email to: support@arraynetworks.com.
Once you have received a password and verified with a customer support engineer that ArrayOS needs upgrade, you can download the software image using the Array Networks website. You should download the image to either a local Web server or anonymous FTP server.
It is recommended that you use the serial console to upgrade the ArrayOS. Once you have a console connection you can upgrade the appliance by using the "system update" command. Currently the upgrade procedure supports two upgrade methods: HTTP or FTP. The commands are identical except from the URL.
For example, use the command to upgrade the appliance from 192.168.10.10:
AN(config)#system update http://10.3.0.20/smp/build/ArrayOS-Beta_APV_10_2_0_12.array |
![]() | Note |
|---|---|
If you are to use a DNS name like: system-update http://s5.sj.example.com, make sure that you have correctly setup the resolving on the APV appliance, using the "ip nameserver" command to define your DNS server for the "s5" host or use the "ip host" command to locally define the IP address of the "s5" host. Otherwise you will get an error when you try to download the software image. |
The ArrayOS will then shutdown all load balancing features and download the software image, verify that the software is produced at Array Networks and then install it. If there is any problem with the software image, the CLI will abort the upgrade and display a prompt on the screen. Otherwise you should get a prompt on the console stating that the upgrade was successful and the APV appliance will reboot. Upon reboot, you should use the "show version" command to verify that the upgrade is successful.
![]() | Warning |
|---|---|
If executing this command via an SSH connection and if the connection is lost during update procedure, the APV appliance will not be able to complete the update process. Do not disconnect the connections to the APV appliance during the system updating process. |
Software Licenses
Some software features of the APV appliance may be under software license key control. If you need these software features, please contact customer support (support@arraynetworks.com) to obtain a new license key.
The Configuration Synchronization feature of the APV appliance allows administrators to transfer configuration information among APV appliances within the same network. Configuration Synchronization is a set of commands that allow you to manage and configure boxes within a network. You may transfer configuration information from one APV appliance in a network to other APV appliances within the same network. By using configuration synchronization, you can quickly setup an Active-Standby configuration. The rest of the section will cover how to use this feature.
![]() | Note |
|---|---|
Synconfig commands are executed via SSH, therefore SSH must be enabled. |
Configure configuration synchronization on APV1.
AN1(config)#synconfig peer APV1 192.168.1.1 |
Configure configuration synchronization on APV2.
AN2(config)#synconfig peer APV1 192.168.1.1 |
![]() | Note |
|---|---|
If WebWall is turned on for the interface which the "synconfig" command uses to synchronize with peer, you need to add the corresponding accesslist rules to allow the traffic to come in through SSH port 22 on both Array machines (APV appliance and the sync peer). |
Administrators can synchronize SDNS configurations and BIND9 zone files except SDNS member configurations from a local APV appliance to remote peers.
In the following example, SDNS configurations and BIND9 zone files except SDNS member configurations on APV1 are synchronized to remote APV2.
Configure SDNS configuration synchronization on APV1.
AN1(config)#synconfig sdns peer peerlocal 172.16.83.180 |
Start SDNS configuration synchronization from APV1 to APV2.
| AN(config)#synconfig sdns to peerremote |
The APV appliance allows the administrator to view a wide range of pertinent network data through a series of pre-designed and custom (administrator defined) graphs.
To establish custom graph items:
AN(config)#graph name aa |
Component update allows for the update of many components on the APV appliances without requiring a reboot. The effect of the component update is instantaneous. Any number of component patches can be applied to the APV appliances. However, only the most recent component update can be reverted. The list of patches applied using component update is visible in the output of "show version" command.
Component patches can only be generated by Array Networks. These are in the same ".array" format as the regular ArrayOS updates, but they are much smaller in size.
The Network Time Protocol (NTP) time synchronizer enables the APV appliance to synchronize the system time with the specified NTP server.
After the NTP time synchronizer is enabled, the APV appliance will automatically synchronize the system time with the specified NTP server at the interval of about 15 minutes.
![]() | Warning |
|---|---|
Do not change the system time of the APV appliance after enabling the NTP time synchronizer. Array APV appliance should be used as the NTP client rather than the NTP server. |
If multiple NTP servers are configured, the APV appliance will calculate the round-trip delays according to the time information in the response packet from each NTP server, and synchronize its system time with the NTP server with the minimum delay.
Configure an NTP server.
| AN(config)#ntp server 207.46.197.32 4 |
Turn on NTP time synchronizer.
| AN(config)#ntp on |
Users also can use the command "show ntp" to view the current NTP configuration.
AN1(config)#show ntp |
XML RPC allows clients to run some CLI commands remotely in ArrayOS. This enables system programmers to automate remote configuration which is difficult with WebUI.
XML RPC is a Remote Procedure Calling protocol that works over the Internet, which uses HTTP as a transport mechanism and XML as an encoding.
As shown in the figure below, Client sends an HTTP POST Request to Array APV. XML RPC message is the body of the HTTP Request, in which the commands to run and the commands' parameters are specified. Then, Array APV decodes the XML PRC message and executes the called commands. At last it returns the results formatted in XML to Client.
To realize the communication between the Client and the APV appliance, a Perl script, called array_xmlrpc.pl, MUST be first executed on Client. The command executed the script is:
| array_xmlrpc.pl –d <address> -p <port> -f <data_file> |
In this command, <address> specifies the APV IP address. <port> specifies the port on which the HTTP server is listening. <data_file> specifies the full path and filename of XML RPC message.
XML RPC message is formatted in XML and contains a <methodCall> tag in which <methodName> and <params> tags are embedded.
The following is an HTTP POST Request whose body is an XML RPC message:
POST /cgi-bin/xmlrpc_server HTTP/1.1 |
In this example, the first three lines (as below) constitute the HTTP Request Header, and the remaining part HTTP Request body.
POST /cgi-bin/xmlrpc_server HTTP/1.1 |
In the first three lines of XML RPC message (as below), "slb_real" is the XML RPC method of the called command "slb real <protocol> <name> <ip> [port] [maxconns] [hc_type] [hc_up] [hc_down]". XML PRC method is embedded in a <methodName> tag (Please refer to Appendix III, in which all XML RPC methods supported by APV are listed.).
<?xml version='1.0' ?> |
The following part specifies the Enable mode and its password, which indicates the user will log in the Enable mode. "enable_password" is the keyword. The actual password value is embedded in a <string> tag. Enable password is included in every XML RPC message.
<member> |
This portion (as below) specifies the "protocol" parameter of the called "slb_real" method. "protocol" is the keyword, whose value is embedded in a <string> tag.
<member> |
In this example, the parameters of the "slb_real" method include protocol, name, ip, port, maxconns, hctype, hcup and hcdown。Protocol, name and ip are required, while port, maxconns, hctype, hcup and hcdown are optional.
![]() | Note |
|---|---|
In an HTTP Request, more than one XML RPC method can be called. |
If the calling is successful, APV will return an HTTP Response formatted in as follows:
<?xml version='1.0' ?> |
If the called command is a "show" command, its output will be displayed in the place of "xmlrpc command successful". If there is any error, the error is displayed.
To configure the XML PRC function on APV, you need to configure two commands:
Turn on XML RPC.
| AN1(config)#xml on https |
Set the port for XML RPC to listen.
| AN1(config)#xml port 9999 |
The Remote Management feature of the APV appliance allows administrators to access remote devices via Telnet & SSH. To use the Telnet feature on the APV appliance, users can execute the command "telnet "host port"" as follows:''
AN#telnet "‘172.16.2.182 -4'" |
To use the SSH feature on the APV appliance, users can execute the command "ssh remote "user@hostname"" as follows:
AN#ssh remote "root@172.16.85.240" |
The APV appliance monitors a variety of useful statistics that provide a good indication of performance, user and network activity. The APV appliance provides a graphical interface that can be used to easily monitor various statistics and get a comprehensive picture of the status of the APV appliance. This graphical interface is called the Flight Deck.
The Array Flight Deck is an additional pop up browser window that, once set, can display a wide range of real time network operational data. Across the top of the browser window, you will discover readouts concerning the server health, request rate, cache hits and system usage. Moving to the left side of the window, you will find reading for the TCP, HTTP and SSL connections. The three connection figures sum up to total used "TCP pcb" displayed in the output of the "show memory" command. Sometimes, a pair of TCP connections is created for the same client request, for example, an SLB client request normally will generate two connections, one is from the client to APV appliance, and the other is from the APV appliance to the server.
The central portion of the Array Flight Deck is occupied by two configurable graphs. Simply use the pull-down menu to choose the desired data you wish to track in the real time graphical output.
You can access the Flight Deck from the APV appliance WebUI by clicking the "Flight Deck" node at the bottom of the WebUI Home configuration tree.
There exists two drop down menus above each graph. The first menu, called "Graph Type" contains a list of the statistics that can be displayed in the graph. Note that the list is identical for each graph. The second menu, called "Interval", is used to control the granularity of the time units shown on the horizontal axis of the graph, and how often the APV appliance will update the graph. The default menu option is 5 seconds, which is also the smallest value that can be chosen. When the value is 5 seconds, the APV appliance will update the graph display every 5 seconds, and the time will be shown on the horizontal axis in multiples of 5.
For some statistics, it makes sense to use a smaller interval. For example, it might be useful to see how the number of packets processed by the APV appliance varies in 30-second intervals. On the other hand, you may want to view some statistics over a wider interval. For example, you may want to look at how the number of concurrent sessions varies from hour to hour, to get a feel for when most of your end users are logging in.
It is important to note that in order to view any of the statistics in the graphs, you must enable SNMP. This can be done via the WebUI from the "Graph SNMP Monitoring" page under the "Admin Tools" node. Some of the statistics also require additional configuration, which will be described below.
![]() | Note |
|---|---|
For the sake of security, it is strongly recommended to modify the default SNMP community string to avoid possible system information interception. |
The APV appliance allows creating system administrators and specifying the access control level (Enable or Config) for administrators. If more flexible control over the administrator privilege is needed, the role-based privilege management can be used to control the CLI commands an administrator can execute.
The APV appliance allows creating two types of administrator: administrator of the Enable level and administrator of the Config level. Administrators of the Enable level can execute only the commands allowed by the Enable and User levels. Administrators of the Config level can execute all the commands allowed by the Config, Enable and User levels.
The role-based privilege management function can control the CLI commands that an administrator can execute by assigning roles to the administrator, thus realizing more flexible administrator privilege control.
One administrator can be assigned one or more roles, and the logic among the multiple roles is "OR". If any role assigned to an administrator permits the execution of a command, then the administrator can execute this command; if all roles assigned to an administrator deny (or none of the roles permits) the execution of a command, the administrator cannot execute this command. If an administrator is not assigned any role, the administrator is allowed to execute all the commands of his access control level.
Role is a set of privilege rules. A privilege rule consists two parts: rule string and operation privilege.
Rule String
Rule string defines one or a group of command configurations. Three forms of rule string are supported:
Complete form: slb real http 'r1' 172.16.2.250 80 1 tcp 3 3
Incomplete form with some parameters: slb real http 'r1'
Incomplete form with a part of the command body: slb real
To configure eligible rule strings, please pay attention to the following notes:
The command body cannot be abbreviated.
The parameters are case-sensitive.
The whole rule string needs to be enclosed in double quotes. If double quotes are further needed by some parameters in the rule string, please use single quotes instead.
If the entered string has multiple consecutive spaces, the spaces will be regarded as one space.
The system will check the command entered by the administrator against the rule strings from the first letter. If the command is identical with or comprises a rule string, the command is regarded as matching the rule string and will follow the rule.
Operation Privilege
There are two kinds of operation privileges: "permit" and "deny". The privilege rules are consequently divided into "permit" rules and "deny" rules, which are respectively used to control that one command or a group of commands can or cannot be executed by certain roles. If a role is not configured with any "permit" rule, the role is not permitted to execute any command.
When a command matches a "permit" rule and a "deny" rule at the same time, the system will assume that the "deny" rule has a higher priority.
For example:
role1:
"permit" rule: "no slb group"
"deny" rule: "no slb group method"
The system will deny the execution of commands starting with "no slb group method" by role1, but the execution of other commands starting with "no slb group" is permitted.
role2:
"permit" rule: "no slb group method"
"deny" rule: "no slb group"
Because the "deny" rule rule has a higher priority, the system will deny the execution of the commands starting with "no slb group" by role2, although the "permit" rule allows the execution of the commands starting with "no slb group method".
To disallow a role from executing configuration, display and deletion operations about a feature (for example LLB), please configure the following privilege rule for this role:
"deny" rule: "llb"
"deny" rule: "no llb"
"deny" rule: "show llb"
"deny" rule: "clear llb"
![]() | Note |
|---|---|
The system provides two pre-defined roles: "SLB" and "NETWORK". You can execute the "show role predefined" command to see the privilege rules of the two roles. Monitoring WebUI requires the privilege for executing the "show" CLI commands. Please make sure the administrators who need to monitor a specific feature on WebUI are assigned the role with the correspondent "show" privileges. |